Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/createtoolbar.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-06 15:08:31 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-09-06 15:08:31 (GMT)
commit23387adc11d5bcd22222135c4a1127443447c10e (patch)
treed08f0e3406557bd7e434c69d43e63d7e5ff31b4c /createtoolbar.py
parent438623b9afd7da714781f01d47ea9da94d7a77ad (diff)
Pass parent to ObjectChooser
Diffstat (limited to 'createtoolbar.py')
-rw-r--r--createtoolbar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/createtoolbar.py b/createtoolbar.py
index a849770..b5c72fe 100644
--- a/createtoolbar.py
+++ b/createtoolbar.py
@@ -111,7 +111,9 @@ class CreateToolbar(gtk.Toolbar):
self.emit('create_load_game', game_name)
def _load_game(self, button):
- chooser = ObjectChooser(_('Choose memorize game'), None, gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT)
+ chooser = ObjectChooser(_('Choose memorize game'),
+ parent=self.activity,
+ flags=gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT)
jobject = ''
try:
result = chooser.run()