diff options
Diffstat (limited to 'mmm_modules/image_category.py')
-rwxr-xr-x[-rw-r--r--] | mmm_modules/image_category.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |