Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/createcardpanel.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-09-06 19:24:49 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-09-06 19:24:49 (GMT)
commit02d954c1030a4813a68888a063e76d386eb63087 (patch)
treecad994c50e990dba4210310a30118daffe9642f8 /createcardpanel.py
parent23387adc11d5bcd22222135c4a1127443447c10e (diff)
Use get_toplevel() to get activity window
Diffstat (limited to 'createcardpanel.py')
-rw-r--r--createcardpanel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/createcardpanel.py b/createcardpanel.py
index c52d2f3..4ac5c72 100644
--- a/createcardpanel.py
+++ b/createcardpanel.py
@@ -374,7 +374,7 @@ class CardEditor(gtk.EventBox):
del pixbuf_t
del pixbuf_z
- chooser.pick(parent=activity.this,
+ chooser.pick(parent=self.get_toplevel(),
what=chooser.IMAGE,
cb=load)
@@ -394,7 +394,7 @@ class CardEditor(gtk.EventBox):
self.emit('has-sound', True)
_logger.debug('Audio Loaded: '+dst)
- chooser.pick(parent=activity.this,
+ chooser.pick(parent=self.get_toplevel(),
what=chooser.AUDIO,
cb=load)