diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2010-03-06 13:27:14 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2010-03-06 13:27:14 +0100 |
commit | 255e23062788fda92e57855ce216bd0d38a9d958 (patch) | |
tree | bee822573d52cf8a50e8c3dec6656e6f9f8a8167 /portato/gui | |
parent | 15fefdc8c11b352b10f87d1f4c46dd274213cbdc (diff) | |
download | portato-255e23062788fda92e57855ce216bd0d38a9d958.tar.gz portato-255e23062788fda92e57855ce216bd0d38a9d958.tar.bz2 portato-255e23062788fda92e57855ce216bd0d38a9d958.zip |
improved image handling
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/about.py | 7 | ||||
-rw-r--r-- | portato/gui/windows/main.py | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/portato/gui/windows/about.py b/portato/gui/windows/about.py index 937ed8b..1b8a981 100644 --- a/portato/gui/windows/about.py +++ b/portato/gui/windows/about.py @@ -15,7 +15,7 @@ from __future__ import absolute_import import gtk from .basic import AbstractDialog -from ...constants import VERSION, APP_ICON +from ...constants import VERSION class AboutWindow (AbstractDialog): """A window showing the "about"-informations.""" @@ -24,11 +24,8 @@ class AboutWindow (AbstractDialog): AbstractDialog.__init__(self, parent) - img = gtk.Image() - img.set_from_file(APP_ICON) - self.window.set_version(VERSION) - self.window.set_logo(img.get_pixbuf()) + self.window.set_logo(None) self.window.show_all() diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 1b67747..0b0c48d 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -434,8 +434,7 @@ class MainWindow (Window): self.window.set_geometry_hints (self.window, max_height = gtk.gdk.screen_height(), max_width = gtk.gdk.screen_width()) # app icon - self.window.set_icon_from_file(APP_ICON) - gtk.window_set_default_icon(self.window.get_icon()) + gtk.window_set_default_icon_from_file(APP_ICON) # booleans self.doUpdate = False |