From 223b6253caecac05649558ec31bd5210768c0dbb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 12 Nov 2013 13:02:00 +0100 Subject: workaround the same segfault when picking the desktop alter mygtk3 in order to pass a button to join its group --- perl-install/install/steps_gtk.pm | 2 +- perl-install/mygtk3.pm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index f526f0d74..7dc844af2 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -260,7 +260,7 @@ sub reallyChooseDesktop { tip => $tips{$val->[0]}, toggled => sub { $choice = $val if $_[0]->get_active }, active => $choice == $val, - $prev ? (group => $prev->get_group) : ()); + $prev ? (join => $prev) : ()); $prev->signal_connect(key_press_event => sub { my (undef, $event) = @_; if (!$event || ($event->keyval & 0x7f) == 0xd) { diff --git a/perl-install/mygtk3.pm b/perl-install/mygtk3.pm index 094ca1a65..ae72041ca 100644 --- a/perl-install/mygtk3.pm +++ b/perl-install/mygtk3.pm @@ -171,6 +171,7 @@ sub _gtk_any_Button { delete $opts->{mnemonic} ? "Gtk3::$class"->new_with_mnemonic(@radio_options, delete $opts->{text} || '') : $opts->{text} ? "Gtk3::$class"->new_with_label(@radio_options, delete $opts->{text} || '') : "Gtk3::$class"->new(@radio_options); + $w->join_group(delete $opts->{join}) if $opts->{join}; $w->{format} = delete $opts->{format} if exists $opts->{format}; } -- cgit v1.2.1