summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-09 18:26:22 +0100
committerMichael Vogt <egon@top>2005-12-09 18:26:22 +0100
commit13e6224748902fe35c9f7a5030b80387a376fe45 (patch)
treec71095a7844ea35512d212dd2d733258a0a2fd9c /SoftwareProperties
parent467c5b4dc66942ba28cb8d29b82c21ed8bc98b74 (diff)
downloadpython-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.py12
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()