diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-29 20:48:50 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-29 20:48:50 +0000 |
commit | 574a998d6a022ce3fa4df1cdce64960cf7732c3d (patch) | |
tree | 20d832d193526072f83912b9c447ddd0f5c59cbf | |
parent | 8c181cd7dfdcd1a1d859ace997c34068e9095dba (diff) | |
download | rpmdrake-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-- | NEWS | 4 | ||||
-rwxr-xr-x | rpmdrake | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -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: @@ -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 |