summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/NEWS2
-rw-r--r--perl-install/mygtk3.pm5
2 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index aadb2e923..43aed295e 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -2,6 +2,8 @@
o do not offer to switch to OSS
o do not offer to switch to another driver if there's none
o do not offer to pick a random driver when we've a default one
+- mygtk3 layer:
+ o add support for RadioMenuItems for rpmdrake
- ugtk3 layer:
o make shrinking window work again (eg: draknfs)
diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm
index 421a9f419..d3564a31c 100644
--- a/perl-install/mygtk3.pm
+++ b/perl-install/mygtk3.pm
@@ -561,6 +561,9 @@ sub _gtk__ActionGroup {
if ($opts->{actions}) {
$w->add_actions(delete $opts->{actions}, undef);
$w->add_toggle_actions(delete $opts->{toggle_actions}, undef) if $opts->{toggle_actions};
+ if (my $radios = delete $opts->{radio_actions}) {
+ $w->add_radio_actions(@$_) foreach @$radios;
+ }
}
}
$w;
@@ -585,7 +588,7 @@ sub _gtk__UIManager {
$w = Gtk3::UIManager->new;
if ($opts->{actions}) {
$w->insert_action_group(gtknew('ActionGroup', name => 'Actions',
- map { exists $opts->{$_} ? ($_ => delete $opts->{$_}) : () } qw(actions toggle_actions)),
+ map { exists $opts->{$_} ? ($_ => delete $opts->{$_}) : () } qw(actions radio_actions toggle_actions)),
0);
}
$w->add_ui_from_string(delete $opts->{string}) if exists $opts->{string};