aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrpmdrake7
1 files changed, 3 insertions, 4 deletions
diff --git a/rpmdrake b/rpmdrake
index 85cbeb1b..cdaf0462 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -57,6 +57,8 @@ $0 =~ m|remove$| and $MODE = 'remove';
$0 =~ m|update$|i and $MODE = 'update';
$MODE eq 'update' || "@ARGV" =~ /--root/ and require_root_capability();
+$ugtk2::wm_icon = "title-$MODE";
+
eval { require ugtk2; ugtk2->import(qw(:all)); require Gtk2::Pango; require Gtk2::Gdk::Keysyms };
@@ -922,10 +924,7 @@ Is it ok to continue?", to_utf8($urpm->translate_why_removed($urpm->{state}, @{$
$> and $action_button->set_sensitive(0);
$find_entry->grab_focus;
- if (!$::isEmbedded) {
- $w->{window}->set_default_size($typical_width*2.7, 500);
- $w->{window}->set_icon(gtkcreate_pixbuf("title-$MODE"));
- }
+ $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,