From 5388aa298e73ac1d09a4ec277df39b8c8fe7b397 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Tue, 18 Apr 2006 22:50:19 +0200 Subject: * set the default icon of software-properties to the corresponding one * add jimmac to AUTHORS * replace the logo in update-manager --- SoftwareProperties/SoftwareProperties.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'SoftwareProperties/SoftwareProperties.py') diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index aa3114f0..d80781e0 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -57,6 +57,12 @@ CONF_MAP = { class SoftwareProperties(SimpleGladeApp): def __init__(self, datadir=None, options=None, parent=None): + icons = gtk.icon_theme_get_default() + try: + logo=icons.load_icon("software-properties", 48, 0) + gtk.window_set_default_icon_list(logo) + except: + pass # FIXME: some saner way is needed here if datadir == None: -- cgit v1.2.3 From f8724e0b2329dbd497419123e38bb36d7bbeed71 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Wed, 19 Apr 2006 00:43:09 +0200 Subject: * greatly improve the icon loading code --- SoftwareProperties/SoftwareProperties.py | 7 +------ UpdateManager/UpdateManager.py | 9 ++------- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'SoftwareProperties/SoftwareProperties.py') diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index d80781e0..237ffbdd 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -57,12 +57,7 @@ CONF_MAP = { class SoftwareProperties(SimpleGladeApp): def __init__(self, datadir=None, options=None, parent=None): - icons = gtk.icon_theme_get_default() - try: - logo=icons.load_icon("software-properties", 48, 0) - gtk.window_set_default_icon_list(logo) - except: - pass + gtk.window_set_default_icon_name("software-properties") # FIXME: some saner way is needed here if datadir == None: diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 12931f29..83ca5d57 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -215,18 +215,13 @@ class UpdateList: class UpdateManager(SimpleGladeApp): def __init__(self, datadir): - icons = gtk.icon_theme_get_default() - try: - logo=icons.load_icon("update-manager", 48, 0) - gtk.window_set_default_icon_list(logo) - except: - pass + gtk.window_set_default_icon_name("update-manager") self.datadir = datadir SimpleGladeApp.__init__(self, datadir+"glade/UpdateManager.glade", None, domain="update-manager") - self.image_logo.set_from_pixbuf(logo) + self.image_logo.set_from_icon_name("update-manager", gtk.ICON_SIZE_DIALOG) self.window_main.set_sensitive(False) self.window_main.grab_focus() self.button_close.grab_focus() -- cgit v1.2.3