From 6dd904fd6ed78449c5607c77c0563ab7a823c1e8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 28 Dec 2013 18:05:00 +0100 Subject: (add_nodes) fix slow update of pkgs list (mga#12000) we freeze the tree updates & detach the model while updating it (from PyGtk FAQ: http://faq.pygtk.org/index.py?req=show&file=faq13.043.htp) --- Rpmdrake/gui.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 4e287455..e10629ac 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -539,10 +539,15 @@ sub ask_browse_tree_given_widgets_for_rpmdrake { }; $common->{add_nodes} = sub { my (@nodes) = @_; + $w->{detail_list}->freeze_child_notify; + my $model = $w->{detail_list}->get_model; + $w->{detail_list}->set_model; $w->{detail_list_model}->clear; $w->{detail_list}->scroll_to_point(0, 0); add_node($_->[0], $_->[1], $_->[2]) foreach @nodes; update_size($common); + $w->{detail_list}->set_model($model); + $w->{detail_list}->thaw_child_notify; }; $common->{display_info} = sub { -- cgit v1.2.1