diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-08-20 08:20:20 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-08-20 08:20:20 +0000 |
commit | a28a74a06693471697facbce3f6ff39f5bfc2c2c (patch) | |
tree | f9e7b2714ed015554c3b788f27167e1540915435 /perl-install | |
parent | 2a6cdfec9dcbe1f07a5c640bd1b80a268dd8f3e2 (diff) | |
download | drakx-a28a74a06693471697facbce3f6ff39f5bfc2c2c.tar drakx-a28a74a06693471697facbce3f6ff39f5bfc2c2c.tar.gz drakx-a28a74a06693471697facbce3f6ff39f5bfc2c2c.tar.bz2 drakx-a28a74a06693471697facbce3f6ff39f5bfc2c2c.tar.xz drakx-a28a74a06693471697facbce3f6ff39f5bfc2c2c.zip |
(create_widget) explain crash fix introduced in r244218 for advanced widgets
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/interactive/gtk.pm | 2 |
1 files changed, 2 insertions, 0 deletions
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); |