diff options
| author | Michael Vogt <egon@top> | 2005-12-28 14:20:22 +0100 |
|---|---|---|
| committer | Michael Vogt <egon@top> | 2005-12-28 14:20:22 +0100 |
| commit | d35fd5785f9e6fc4a0cf44da509b6b06692b0fa2 (patch) | |
| tree | 8871833aafb82e9a03295a12e21df125f0a5a923 /SoftwareProperties | |
| parent | 730b4f54e44d70bf0a410faba1dd979c89d73b96 (diff) | |
| download | python-apt-d35fd5785f9e6fc4a0cf44da509b6b06692b0fa2.tar.gz | |
* SoftwareProperties/dialog_add.py:
- fix a problem with transient/parent window (ubuntu #21585)
Diffstat (limited to 'SoftwareProperties')
| -rw-r--r-- | SoftwareProperties/dialog_add.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/SoftwareProperties/dialog_add.py b/SoftwareProperties/dialog_add.py index 4a860680..9b384623 100644 --- a/SoftwareProperties/dialog_add.py +++ b/SoftwareProperties/dialog_add.py @@ -31,9 +31,9 @@ import aptsources class dialog_add: def __init__(self, parent, sourceslist, datadir): - print datadir self.sourceslist = sourceslist - + self.parent = parent + # templates self.templatelist = aptsources.SourceEntryTemplates(datadir) @@ -43,7 +43,7 @@ class dialog_add: self.gladexml = gtk.glade.XML("%s/glade/SoftwarePropertiesDialogs.glade" % datadir) self.main = widget = self.gladexml.get_widget("dialog_add") - self.main.set_transient_for(parent) + self.main.set_transient_for(self.parent) combo = self.gladexml.get_widget("combobox_what") self.gladexml.signal_connect("on_combobox_what_changed", self.on_combobox_what_changed, None) @@ -84,6 +84,7 @@ class dialog_add: # this hide here is ugly :/ self.main.hide() dialog = self.gladexml.get_widget("dialog_add_custom") + dialog.set_transient_for(self.parent) res = dialog.run() dialog.hide() entry = self.gladexml.get_widget("entry_source_line") |
