From 10fc76dd0601c21b35df24b36cb4a289543ca4a5 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 16 Oct 2002 13:39:17 +0000 Subject: fix Gtk::CTree:insert_node inversing devices order --- perl-install/harddrake/ui.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'perl-install/harddrake') diff --git a/perl-install/harddrake/ui.pm b/perl-install/harddrake/ui.pm index 4e3ba7b73..73ee3196f 100644 --- a/perl-install/harddrake/ui.pm +++ b/perl-install/harddrake/ui.pm @@ -237,17 +237,14 @@ sub new { foreach (@class_tree) { my ($devices_list, $arg, $icon, $arg2, $title, $configurator ) = @$_; my $hw_class_tree = $tree->insert_node(undef, undef, @$arg, (gtkcreate_png($icon)) x 2, @$arg2); - my $prev_item; # Fill the graphic tree with a "tree leaf" widget per device foreach (@$devices_list) { my $custom_id = harddrake::data::custom_id($_, $title); $custom_id .= ' ' while exists($tree->{data}{$custom_id}); - my $hw_item = $tree->insert_node($hw_class_tree, $prev_item, [$custom_id ], 5, (undef) x 4, 1, 0); + my $hw_item = $tree->insert_node($hw_class_tree, undef, [$custom_id ], 5, (undef) x 4, 1, 0); $tree->{data}{$custom_id} = $_; $tree->{configurator}{$custom_id} = $configurator; - $prev_item = $hw_item; } - undef $prev_item; } $SIG{CHLD} = sub { undef $pid; $statusbar->pop($sig_id) }; -- cgit v1.2.1