From 4155c6064c956a51876c25c20ad265e4c2f3466d Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Fri, 3 Feb 2006 13:34:43 +0100 Subject: * Use "host_window" instead of "window", since it is a gtk attribute * Set the deault icon of all windows in the code so that we also get the app icon on code generated dialogs * Do not show a "X" in the window decoation of dialogs - the dialog needs to be realized before - it is a HIG recommendation --- UpdateManager/UpdateManager.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'UpdateManager/UpdateManager.py') diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index de77f041..dd9204c3 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -213,7 +213,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 + self.datadir = datadir SimpleGladeApp.__init__(self, datadir+"glade/UpdateManager.glade", None, domain="update-manager") @@ -549,6 +555,8 @@ class UpdateManager(SimpleGladeApp): win = gtk.Window() win.set_property("type-hint", gtk.gdk.WINDOW_TYPE_HINT_DIALOG) win.set_title("") + win.realize() + win.window.set_functions(gtk.gdk.FUNC_MOVE) win.set_border_width(6) win.set_transient_for(self.window_main) win.set_position(gtk.WIN_POS_CENTER_ON_PARENT) -- cgit v1.2.3