* src/ImageSelect.py: disable double click to edit in a gallery
svn: r2790
This commit is contained in:
parent
1d6e27ca42
commit
e3af34a0b9
@ -337,13 +337,13 @@ class Gallery(ImageSelect):
|
|||||||
return gtk.TRUE
|
return gtk.TRUE
|
||||||
elif event.type == gtk.gdk.BUTTON_RELEASE:
|
elif event.type == gtk.gdk.BUTTON_RELEASE:
|
||||||
self.button = 0
|
self.button = 0
|
||||||
elif event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
# elif event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
||||||
item = widget.get_item_at(event.x,event.y)
|
# item = widget.get_item_at(event.x,event.y)
|
||||||
if item:
|
# if item:
|
||||||
(i,t,b,self.photo,oid) = self.p_map[item]
|
# (i,t,b,self.photo,oid) = self.p_map[item]
|
||||||
LocalMediaProperties(self.photo,self.path,self,self.parent_window)
|
# LocalMediaProperties(self.photo,self.path,self,self.parent_window)
|
||||||
self.in_event = 0
|
# self.in_event = 0
|
||||||
return gtk.TRUE
|
# return gtk.TRUE
|
||||||
elif event.type == gtk.gdk.MOTION_NOTIFY:
|
elif event.type == gtk.gdk.MOTION_NOTIFY:
|
||||||
if event.state & gtk.gdk.BUTTON1_MASK:
|
if event.state & gtk.gdk.BUTTON1_MASK:
|
||||||
# Get the new position and move by the difference
|
# Get the new position and move by the difference
|
||||||
|
Loading…
Reference in New Issue
Block a user