summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
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()