diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-10-16 13:39:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-10-16 13:39:17 +0000 |
commit | 10fc76dd0601c21b35df24b36cb4a289543ca4a5 (patch) | |
tree | 0f565a2d0cde757056abd99228f063513e0c3e91 /perl-install | |
parent | 28452db1b08cc4d108fbb503d5785edca068b5f1 (diff) | |
download | drakx-backup-do-not-use-10fc76dd0601c21b35df24b36cb4a289543ca4a5.tar drakx-backup-do-not-use-10fc76dd0601c21b35df24b36cb4a289543ca4a5.tar.gz drakx-backup-do-not-use-10fc76dd0601c21b35df24b36cb4a289543ca4a5.tar.bz2 drakx-backup-do-not-use-10fc76dd0601c21b35df24b36cb4a289543ca4a5.tar.xz drakx-backup-do-not-use-10fc76dd0601c21b35df24b36cb4a289543ca4a5.zip |
fix Gtk::CTree:insert_node inversing devices order
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/harddrake/ui.pm | 5 |
1 files changed, 1 insertions, 4 deletions
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) }; |