aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpmdrake16
-rw-r--r--rpmdrake.pm2
2 files changed, 10 insertions, 8 deletions
diff --git a/rpmdrake b/rpmdrake
index e2a5cc80..e29fcfb3 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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 });