diff options
| author | Michael Vogt <egon@top> | 2005-12-09 18:26:22 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-12-09 18:26:22 +0100 |
| commit | 13e6224748902fe35c9f7a5030b80387a376fe45 (patch) | |
| tree | c71095a7844ea35512d212dd2d733258a0a2fd9c /SoftwareProperties | |
| parent | 467c5b4dc66942ba28cb8d29b82c21ed8bc98b74 (diff) | |
| download | python-apt-13e6224748902fe35c9f7a5030b80387a376fe45.tar.gz | |
* SoftwareProperties/SoftwareProperties.py, gnome-software-properties:
- switched to "--toplevel" here too (instead of --plug)
Diffstat (limited to 'SoftwareProperties')
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 60a2ecdd..14c0873e 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -68,12 +68,12 @@ class SoftwareProperties(SimpleGladeApp): self.window_main.hide() # If externally called, reparent to external application. - if (options.socket != None): - plug = gtk.Plug(long(options.socket)) - self.vbox1.reparent(plug) - plug.show_all() - else: - self.window_main.show() + if options.toplevel != None: + # don't show the add-cdrom button for now + # FIXME: on the long run interface with apt-pkg/cdrom.h + b = self.button_add_cdrom.hide() + toplevel = gtk.gdk.window_foreign_new(int(options.toplevel)) + self.window_main.window.set_transient_for(toplevel) self.init_sourceslist() self.reload_sourceslist() |
