From 13e6224748902fe35c9f7a5030b80387a376fe45 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 9 Dec 2005 18:26:22 +0100 Subject: * SoftwareProperties/SoftwareProperties.py, gnome-software-properties: - switched to "--toplevel" here too (instead of --plug) --- SoftwareProperties/SoftwareProperties.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'SoftwareProperties/SoftwareProperties.py') 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() -- cgit v1.2.3