aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AdminPanel/Rpmdragora/gui.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-11-18 22:25:06 +0100
committerAngelo Naselli <anaselli@linux.it>2014-11-18 22:25:06 +0100
commitfac4e843dda83f064e2ff40362ce3482a4370df6 (patch)
tree752d9a021bfc98aea3e5a76202e4ef4e97a66d7b /lib/AdminPanel/Rpmdragora/gui.pm
parent4d6b0773e691905cdfcf8ed0011225edc5e394fc (diff)
downloadmanatools-fac4e843dda83f064e2ff40362ce3482a4370df6.tar
manatools-fac4e843dda83f064e2ff40362ce3482a4370df6.tar.gz
manatools-fac4e843dda83f064e2ff40362ce3482a4370df6.tar.bz2
manatools-fac4e843dda83f064e2ff40362ce3482a4370df6.tar.xz
manatools-fac4e843dda83f064e2ff40362ce3482a4370df6.zip
Closed in a MultipleChanges block
Diffstat (limited to 'lib/AdminPanel/Rpmdragora/gui.pm')
-rw-r--r--lib/AdminPanel/Rpmdragora/gui.pm23
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/AdminPanel/Rpmdragora/gui.pm b/lib/AdminPanel/Rpmdragora/gui.pm
index 28e10f44..dd71b160 100644
--- a/lib/AdminPanel/Rpmdragora/gui.pm
+++ b/lib/AdminPanel/Rpmdragora/gui.pm
@@ -644,10 +644,13 @@ sub add_node {
$table_item_list[$newTableItem->index()] = $leaf;
$newTableItem->DISOWN();
} else {
+# print "TODO: add_node !is_a_package(\$leaf)\n";
$iter = $w->{tree_model}->append_set(add_parent($w->{tree},$root, $state), [ $grp_columns{label} => $leaf ]);
#push @{$wtree{$leaf}}, $iter;
}
} else {
+# print "TODO: add_node !\$leaf\n";
+
my $parent = add_parent($w->{tree}, $root, $state);
#- hackery for partial displaying of trees, used in rpmdragora:
#- if leaf is void, we may create the parent and one child (to have the [+] in front of the parent in the ctree)
@@ -879,13 +882,19 @@ sub ask_browse_tree_given_widgets_for_rpmdragora {
update_size($common);
};
$common->{add_nodes} = sub {
- my (@nodes) = @_;
- $w->{detail_list}->deleteAllItems();
- #$w->{detail_list}->scroll_to_point(0, 0);
- foreach(@nodes){
- add_node($_->[0], $_->[1], $_->[2]);
- }
- update_size($common);
+# print "TODO ==================> ADD NODES\n";
+ my (@nodes) = @_;
+ yui::YUI::app()->busyCursor();
+
+ $w->{detail_list}->startMultipleChanges();
+ $w->{detail_list}->deleteAllItems();
+ #$w->{detail_list}->scroll_to_point(0, 0);
+ foreach(@nodes){
+ add_node($_->[0], $_->[1], $_->[2]);
+ }
+ update_size($common);
+ $w->{detail_list}->startMultipleChanges();
+ yui::YUI::app()->normalCursor();
};
$common->{display_info} = sub {