From 5cbf48d3e82d00d259b3dae594016ed26dfeab14 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 16 Sep 2008 19:56:37 +0000 Subject: (ask_browse_tree_info) simplify help now that callers just provide a callback --- perl-install/ugtk2.pm | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'perl-install') diff --git a/perl-install/ugtk2.pm b/perl-install/ugtk2.pm index ac9efc24e..5ea7fc1ee 100644 --- a/perl-install/ugtk2.pm +++ b/perl-install/ugtk2.pm @@ -935,14 +935,8 @@ sub ask_browse_tree_info { 0, my $box2 = gtknew('HBox', spacing => 10), ])); - gtkpack__($box2, gtknew(($::isInstall ? 'Install_Button' : 'Button'), text => N("Help"), clicked => sub { - # will be a little small in standalone mode: - if ($::isInstall) { - $::o->ask_warn(N("Help"), $common->{interactive_help}->()); - } else { - ask_warn(N("Help"), $common->{interactive_help}->()); - } - })) if $common->{interactive_help}; + gtkpack__($box2, gtknew(($::isInstall ? 'Install_Button' : 'Button'), text => N("Help"), + clicked => $common->{interactive_help})) if $common->{interactive_help}; #gtkpack__($box2, my $toolbar = Gtk2::Toolbar->new('horizontal', 'icons')); gtkpack__($box2, my $toolbar = Gtk2::Toolbar->new); -- cgit v1.2.1