summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-03-24 17:01:03 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-03-24 17:01:03 +0100
commitc27b003ea0fceb92b42bd1633832d1c5eb902a5a (patch)
treefee87d20f686bb8ddfa78f53618225b59d716578 /SoftwareProperties
parent7d8f316f936d8cdd0e0c4047bcb5ff67ed2246e1 (diff)
parent3d4f9a0c623acf75b7b9159c2a3f987deebee755 (diff)
downloadpython-apt-c27b003ea0fceb92b42bd1633832d1c5eb902a5a.tar.gz
* merged from mvo
Diffstat (limited to 'SoftwareProperties')
-rw-r--r--SoftwareProperties/SoftwareProperties.py5
-rw-r--r--SoftwareProperties/dialog_cache_outdated.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py
index f1518f37..9ccf12ad 100644
--- a/SoftwareProperties/SoftwareProperties.py
+++ b/SoftwareProperties/SoftwareProperties.py
@@ -75,6 +75,7 @@ class SoftwareProperties(SimpleGladeApp):
self.window_main.set_transient_for(parent)
# If externally called, reparent to external application.
+ self.options = options
if options and options.toplevel != None:
self.window_main.set_type_hint(gtk.gdk.WINDOW_TYPE_HINT_DIALOG)
self.window_main.show()
@@ -194,7 +195,7 @@ class SoftwareProperties(SimpleGladeApp):
tr.set_property("ypad", 10)
source_col = gtk.TreeViewColumn("Description", tr, markup=LIST_MARKUP)
- source_col.set_max_width(500)
+ #source_col.set_max_width(500)
toggle = gtk.CellRendererToggle()
toggle.connect("toggled", self.on_channel_toggled)
@@ -350,7 +351,7 @@ class SoftwareProperties(SimpleGladeApp):
# show a dialog that a reload of the channel information is required
# only if there is no parent defined
if self.modified == True and \
- self.window_main.get_transient_for() == None:
+ self.options.toplevel == None:
d = dialog_cache_outdated.DialogCacheOutdated(self.window_main,
self.datadir)
res = d.run()
diff --git a/SoftwareProperties/dialog_cache_outdated.py b/SoftwareProperties/dialog_cache_outdated.py
index 11935519..de85cc2e 100644
--- a/SoftwareProperties/dialog_cache_outdated.py
+++ b/SoftwareProperties/dialog_cache_outdated.py
@@ -49,7 +49,7 @@ class DialogCacheOutdated:
pass
cmd = ["/usr/sbin/synaptic", "--hide-main-window",
"--non-interactive",
- "--parent-window-id", "%s" % (id),
+ "--parent-window-id", "%s" % (window_id),
"--update-at-startup"]
subprocess.call(cmd)
lock.release()