summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-01 18:48:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-01 18:48:26 +0000
commitdf8b925221996a6bc02ce8c31221a7b54cd19dac (patch)
tree47e682b069315bfe768260bba85923cd2ecacfaa
parent1115a292a1429e08f13c23d2cf206d0b9636abd3 (diff)
downloaddrakx-df8b925221996a6bc02ce8c31221a7b54cd19dac.tar
drakx-df8b925221996a6bc02ce8c31221a7b54cd19dac.tar.gz
drakx-df8b925221996a6bc02ce8c31221a7b54cd19dac.tar.bz2
drakx-df8b925221996a6bc02ce8c31221a7b54cd19dac.tar.xz
drakx-df8b925221996a6bc02ce8c31221a7b54cd19dac.zip
fix the many warnings when {icon} is not given
-rw-r--r--perl-install/interactive/gtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/interactive/gtk.pm b/perl-install/interactive/gtk.pm
index 0ac1020fc..d96b769d7 100644
--- a/perl-install/interactive/gtk.pm
+++ b/perl-install/interactive/gtk.pm
@@ -493,7 +493,7 @@ sub ask_fromW {
{ e => $e, w => $w, real_w => $real_w || $w, focus_w => $focus_w || $w, expand => $expand,
get => $get || sub { ${$e->{val}} }, set => $set || sub {},
- icon_w => eval { gtkpng($e->{icon}) } };
+ icon_w => $e->{icon} && eval { gtkpng($e->{icon}) } };
};
@widgets_always = map_index { $create_widget->($_, $::i) } @$l;
my $always_total_size = $total_size;