From 9531751f92884d27331c986a2c6beaa4bd6f9fee Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 16 Sep 2005 12:50:09 +0000 Subject: don't call $advertize on "Details" click otherwise it may call $advertize when chrooted which we don't want. So changing behaviour: the button now only hide or show, it doesn't change the current ad --- perl-install/install_steps_gtk.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm index 864f1f6dc..98888fbec 100644 --- a/perl-install/install_steps_gtk.pm +++ b/perl-install/install_steps_gtk.pm @@ -436,8 +436,6 @@ sub installPackages { my $advertize = sub { my ($update) = @_; - $pkg_log_widget->{to_bottom}->('force'); - @install_any::advertising_images && $show_advertising && $update or return; $change_time = time(); @@ -459,7 +457,7 @@ sub installPackages { format => sub { $show_advertising ? N("Details") : N("No details") }, clicked => sub { gtkval_modify(\$show_advertising, !$show_advertising); - $advertize->('update'); + $pkg_log_widget->{to_bottom}->('force'); }); ugtk2::gtkadd($w->{window}, my $box = gtknew('VBox', children_tight => [ -- cgit v1.2.1