* src/ImageSelect.py: disable double click to edit in a gallery

svn: r2790
This commit is contained in:
Don Allingham 2004-02-07 22:23:57 +00:00
parent 1d6e27ca42
commit e3af34a0b9

View File

@ -337,13 +337,13 @@ class Gallery(ImageSelect):
return gtk.TRUE
elif event.type == gtk.gdk.BUTTON_RELEASE:
self.button = 0
elif event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
item = widget.get_item_at(event.x,event.y)
if item:
(i,t,b,self.photo,oid) = self.p_map[item]
LocalMediaProperties(self.photo,self.path,self,self.parent_window)
self.in_event = 0
return gtk.TRUE
# elif event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
# item = widget.get_item_at(event.x,event.y)
# if item:
# (i,t,b,self.photo,oid) = self.p_map[item]
# LocalMediaProperties(self.photo,self.path,self,self.parent_window)
# self.in_event = 0
# return gtk.TRUE
elif event.type == gtk.gdk.MOTION_NOTIFY:
if event.state & gtk.gdk.BUTTON1_MASK:
# Get the new position and move by the difference