aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-29 20:48:50 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-29 20:48:50 +0000
commit574a998d6a022ce3fa4df1cdce64960cf7732c3d (patch)
tree20d832d193526072f83912b9c447ddd0f5c59cbf
parent8c181cd7dfdcd1a1d859ace997c34068e9095dba (diff)
downloadrpmdrake-574a998d6a022ce3fa4df1cdce64960cf7732c3d.tar
rpmdrake-574a998d6a022ce3fa4df1cdce64960cf7732c3d.tar.gz
rpmdrake-574a998d6a022ce3fa4df1cdce64960cf7732c3d.tar.bz2
rpmdrake-574a998d6a022ce3fa4df1cdce64960cf7732c3d.tar.xz
rpmdrake-574a998d6a022ce3fa4df1cdce64960cf7732c3d.zip
(run_treeview_dialog) workaround crashing when tree selection wasn't
realized yet (#41010)
-rw-r--r--NEWS4
-rwxr-xr-xrpmdrake5
2 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d9651194..7eb4bead 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+- rpmdrake:
+ o workaround crashing when tree selection wasn't realized yet
+ (#41010)
+
Version 4.20.3 - 24 September 2008, Olivier Blin
- gurpmi.addmedia:
diff --git a/rpmdrake b/rpmdrake
index df155351..85fe7fb1 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -683,6 +683,11 @@ sub run_treeview_dialog {
$w->{real_window}->set_default_size($rpmdrake_width->[0], $rpmdrake_height->[0]);
}
$w->{rwindow}->show_all;
+
+ # ensure treeview get realized so that ->get_selection returns something
+ $detail_list->realize;
+ gtkflush();
+
$w->{rwindow}->set_sensitive(0);
slow_func($::main_window->window, sub { pkgs_provider({}, $default_list_mode) }); # default mode