Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]SliderPuzzleUI.py2
-rwxr-xr-x[-rw-r--r--]mmm_modules/image_category.py5
2 files changed, 4 insertions, 3 deletions
diff --git a/SliderPuzzleUI.py b/SliderPuzzleUI.py
index 70a7102..802ea82 100644..100755
--- a/SliderPuzzleUI.py
+++ b/SliderPuzzleUI.py
@@ -196,7 +196,7 @@ class SliderPuzzleUI (gtk.Table):
- self.thumb = ImageSelectorWidget(frame_color=COLOR_FRAME_THUMB, prepare_btn_cb=prepare_btn, image_dir='images')
+ self.thumb = ImageSelectorWidget(self._parent,frame_color=COLOR_FRAME_THUMB, prepare_btn_cb=prepare_btn, image_dir='images')
self.thumb.connect("category_press", self.do_select_category)
self.thumb.connect("image_press", self.set_nr_pieces)
control_panel_box.pack_start(self.thumb, False)
diff --git a/mmm_modules/image_category.py b/mmm_modules/image_category.py
index 5f13733..4ea4782 100644..100755
--- a/mmm_modules/image_category.py
+++ b/mmm_modules/image_category.py
@@ -160,7 +160,7 @@ class ImageSelectorWidget (gtk.Table):
__gsignals__ = {'category_press' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),
'image_press' : (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()),}
- def __init__ (self,
+ def __init__ (self,parentp,
width=IMAGE_SIZE,
height=IMAGE_SIZE,
frame_color=None,
@@ -169,6 +169,7 @@ class ImageSelectorWidget (gtk.Table):
image_dir=None):
gtk.Table.__init__(self, 2,5,False)
self._signals = []
+ self.parentp = parentp
self.width = width
self.height = height
self.image = gtk.Image()
@@ -218,7 +219,7 @@ class ImageSelectorWidget (gtk.Table):
else:
filter = { }
- chooser = ObjectChooser(_('Choose image'), None, #self._parent,
+ chooser = ObjectChooser(_('Choose image'), self.parentp, #self._parent,
gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT,
**filter)
try: