diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 19:26:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-02-13 19:26:09 +0000 |
commit | 9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f (patch) | |
tree | 593affe2919aa9fb42e95e8544efe10e7a2b71f2 | |
parent | dfe0bc19ddc92bf756aed53b7029c5197e061195 (diff) | |
download | rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.gz rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.bz2 rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.tar.xz rpmdrake-9764c2ca07a8504a3f98d2cb0cd0dc4886d25e2f.zip |
let it embedd
-rwxr-xr-x | rpmdrake | 16 | ||||
-rw-r--r-- | rpmdrake.pm | 2 |
2 files changed, 10 insertions, 8 deletions
@@ -882,12 +882,14 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($urpm->{state}, @{$ 1, 2, 1, 2, ['expand', 'fill'], ['expand', 'fill'], 0, 0); gtkadd($w->{window}, gtkpack_(Gtk2::VBox->new(0, 3), - 0, Gtk2::Banner->new("title-$MODE", - { remove => N("Software Packages Removal"), - update => N("Mandrake Update"), - install => N("Software Packages Installation"), - }->{$MODE} - ), + if_(!$::isEmbedded, + 0, Gtk2::Banner->new("title-$MODE", + { remove => N("Software Packages Removal"), + update => N("Mandrake Update"), + install => N("Software Packages Installation"), + }->{$MODE} + ), + ), 1, gtkadd(gtkset_shadow_type(gtkset_border_width(Gtk2::Frame->new, 3), 'none'), gtkpack_(Gtk2::VBox->new(0, 3), 0, gtkpack__(Gtk2::HBox->new(0, 10), @@ -915,7 +917,7 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($urpm->{state}, @{$ $> and $action_button->set_sensitive(0); $find_entry->grab_focus; - $w->{window}->set_default_size($typical_width*2.7, 500); + $w->{window}->set_default_size($typical_width*2.7, 500) if !$::isEmbedded; $w->{rwindow}->show_all; $options->{widgets} = { w => $w, tree => $tree, tree_model => $tree_model, textcolumn => $textcolumn, pixcolumn => $pixcolumn, info => $info, status => $status }; diff --git a/rpmdrake.pm b/rpmdrake.pm index 8232ce76..f9ca7c9a 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -181,7 +181,7 @@ sub fatal_msg { sub wait_msg { my ($msg, %options) = @_; my $mainw = ugtk2->new('rpmdrake', grab => 1, if_(exists $options{transient}, transient => $options{transient})); - $mainw->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always'); + $mainw->{rwindow}->set_position($options{transient} ? 'center_on_parent' : 'center_always') if !$::isEmbedded; my $label = ref($msg) =~ /^Gtk/ ? $msg : Gtk2::Label->new($msg); gtkadd($mainw->{window}, gtkpack__(gtkadd(Gtk2::VBox->new(0, 5), $label, if_(exists $options{widgets}, @{$options{widgets}})))); $label->signal_connect(expose_event => sub { $mainw->{displayed} = 1; 0 }); |