aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-17 16:25:46 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-17 16:25:46 +0000
commit7d59940efbde10f35ca11b6b86c1d14b8523deb9 (patch)
tree89ac25863b6320d1495c7fca20c47dcff71a264f
parent365979006cdb864650ed2faca6faf06b47eaab3e (diff)
downloadrpmdrake-7d59940efbde10f35ca11b6b86c1d14b8523deb9.tar
rpmdrake-7d59940efbde10f35ca11b6b86c1d14b8523deb9.tar.gz
rpmdrake-7d59940efbde10f35ca11b6b86c1d14b8523deb9.tar.bz2
rpmdrake-7d59940efbde10f35ca11b6b86c1d14b8523deb9.tar.xz
rpmdrake-7d59940efbde10f35ca11b6b86c1d14b8523deb9.zip
ues new icon scheme
-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,