diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-03 13:34:43 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-03 13:34:43 +0100 |
| commit | 4155c6064c956a51876c25c20ad265e4c2f3466d (patch) | |
| tree | c2923bd213a44bccff3ce2de8f1732b2945b957f /UpdateManager/UpdateManager.py | |
| parent | c6d126a887c61610227717eae43c24f732580500 (diff) | |
| download | python-apt-4155c6064c956a51876c25c20ad265e4c2f3466d.tar.gz | |
* 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
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 10 |
1 files changed, 9 insertions, 1 deletions
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) |
