From 255e23062788fda92e57855ce216bd0d38a9d958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 6 Mar 2010 13:27:14 +0100 Subject: improved image handling --- portato/gui/windows/about.py | 7 ++----- portato/gui/windows/main.py | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'portato/gui') 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 -- cgit v1.2.3