summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-18 13:35:12 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-18 13:35:12 +0000
commitff561b69cae36aaabdbcb576b38e990a47fcea7d (patch)
tree5ae01ac3e36ebdf8c0e195aac6838a1db62d536b
parent6b23fbb20c0efec38180b96db9c43d85ecfb161a (diff)
downloaddrakx-ff561b69cae36aaabdbcb576b38e990a47fcea7d.tar
drakx-ff561b69cae36aaabdbcb576b38e990a47fcea7d.tar.gz
drakx-ff561b69cae36aaabdbcb576b38e990a47fcea7d.tar.bz2
drakx-ff561b69cae36aaabdbcb576b38e990a47fcea7d.tar.xz
drakx-ff561b69cae36aaabdbcb576b38e990a47fcea7d.zip
(create_widgets) explain latest commit
-rw-r--r--perl-install/interactive/gtk.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 50a7b5a4d..c144700de 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -681,6 +681,7 @@ sub create_widgets {
foreach (@all) {
my $e = $_; #- for closures
+ # we only consider real widgets (aka ignoring labels and Help/Release Notes/... buttons):
if ((grep { !$_->{install_button} && $_->{type} ne 'only_label' } @all) == 1 || $e->{quit_if_double_click}) {
#- i'm the only one, double click means accepting
$e->{quit_if_double_click_cooked} = sub { $_[1]->type =~ /^2/ && $ok_clicked->() };