From 9e60c25435db2ef58a1bb955f5286940a097c007 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 21 Mar 2007 11:56:34 +0000 Subject: show main_window earlier so that mcc doesn't complain we exited abnormally b/c no window was displayed (#29573) --- MandrivaUpdate | 4 +++- rpmdrake | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MandrivaUpdate b/MandrivaUpdate index 0da659e3..92d485a0 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -80,13 +80,15 @@ sub get_name { return $name; } +$w = ugtk2->new(N("Software Management")); +$w->{rwindow}->show_all if $::isEmbedded; + sub run_treeview_dialog { my ($callback_action) = @_; my ($size_selected, %elems, $list, $info, $update_button); my (undef, $size_free) = MDK::Common::System::df('/usr'); - $w = ugtk2->new(N("Software Update")); $::main_window = $w->{real_window}; compute_main_window_size($w); diff --git a/rpmdrake b/rpmdrake index 5b491fb1..6c3e0981 100755 --- a/rpmdrake +++ b/rpmdrake @@ -153,6 +153,8 @@ sub do_search($$$$$$$) { } } +$w = ugtk2->new(N("Software Management")); +$w->{rwindow}->show_all if $::isEmbedded; sub run_treeview_dialog { my ($callback_action) = @_; @@ -160,7 +162,6 @@ sub run_treeview_dialog { my ($options, $compssUsers, $tree, $tree_model, $detail_list, $detail_list_model, %elems); (undef, $size_free) = MDK::Common::System::df('/usr'); - $w = ugtk2->new(N("Software Management")); $::main_window = $w->{real_window}; $options = { -- cgit v1.2.1