From 6c4d11ec5422c2fab71fb9121de67b2dbbba5444 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 29 Aug 2002 09:10:27 +0000 Subject: ask_browse: display_info needs to be available for rpmdrake --- perl-install/my_gtk.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/my_gtk.pm') diff --git a/perl-install/my_gtk.pm b/perl-install/my_gtk.pm index 5a544a8d3..7eee5dbca 100644 --- a/perl-install/my_gtk.pm +++ b/perl-install/my_gtk.pm @@ -523,7 +523,7 @@ sub ask_browse_tree_info_given_widgets { &$update_size; }; - my $display_info = sub { gtktext_insert($w->{info}, $common->{get_info}($curr)); 0 }; + $common->{display_info} = sub { gtktext_insert($w->{info}, $common->{get_info}($curr)); 0 }; my $children = sub { map { ($w->{tree}->node_get_pixtext($_, 0))[0] } gtkctree_children($_[0]) }; my $toggle = sub { if (ref $curr && ! $_[0]) { @@ -557,7 +557,7 @@ sub ask_browse_tree_info_given_widgets { if ($_[1]->row->is_leaf) { ($curr) = $w->{tree}->node_get_pixtext($_[1], 0); $parent = $_[1]->row->parent; - $idle = Gtk->timeout_add(100, $display_info); + $idle = Gtk->timeout_add(100, $common->{display_info}); } else { $curr = $_[1]; } -- cgit v1.2.1