From a28a74a06693471697facbce3f6ff39f5bfc2c2c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 20 Aug 2008 08:20:20 +0000 Subject: (create_widget) explain crash fix introduced in r244218 for advanced widgets --- perl-install/interactive/gtk.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl-install/interactive') diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm index 092a853a2..c3f4d4968 100644 --- a/perl-install/interactive/gtk.pm +++ b/perl-install/interactive/gtk.pm @@ -396,6 +396,8 @@ sub create_widget { } elsif ($e->{type} eq 'button') { $w = Gtk2::Button->new_with_label(''); $w->signal_connect(clicked => $e->{clicked_may_quit_cooked}); + # guard against 'advanced' widgets that are now in their own dialog + # (instead of in another block child of an expander) $set = sub { $w->child && $w->child->set_label(may_apply($e->{format}, $_[0])) }; } elsif ($e->{type} eq 'range') { my $adj = Gtk2::Adjustment->new(${$e->{val}}, $e->{min}, $e->{max} + ($e->{SpinButton} ? 0 : 1), 1, ($e->{max} - $e->{min}) / 10, 1); -- cgit v1.2.1