summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-25 14:55:01 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-29 12:47:09 +0100
commit4722ca4f3b0a21e254e0becbf763665910939a7d (patch)
treeb86be3570c21311ba936e0751ff568ccab2742c8 /perl-install
parent265ce1285a10e4da33853758197a5fb7b02778dd (diff)
downloaddrakx-4722ca4f3b0a21e254e0becbf763665910939a7d.tar
drakx-4722ca4f3b0a21e254e0becbf763665910939a7d.tar.gz
drakx-4722ca4f3b0a21e254e0becbf763665910939a7d.tar.bz2
drakx-4722ca4f3b0a21e254e0becbf763665910939a7d.tar.xz
drakx-4722ca4f3b0a21e254e0becbf763665910939a7d.zip
add support for RadioMenuItems for rpmdrake
Diffstat (limited to 'perl-install')
-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};