* src/SourceView.py: Correct behavior for right-click popup menu.

* src/EditPerson.py: Likewise.
* src/FamilyView.py: Likewise.
* src/ImageSelect.py: Likewise.
* src/PedView.py: Likewise.
* src/PlaceView.py: Likewise.
* src/plugins/BookReport.py: Likewise.
* src/PeopleView.py: Likewise.


svn: r2270
This commit is contained in:
Alex Roitman
2003-10-20 02:47:03 +00:00
parent f5933f9366
commit f7158aa398
9 changed files with 69 additions and 49 deletions

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
#-------------------------------------------------------------------------
#
# Standard python modules
@ -316,7 +318,7 @@ class Gallery(ImageSelect):
item = widget.get_item_at(event.x,event.y)
if item:
(i,t,b,self.photo,oid) = self.p_map[item]
self.show_popup(self.photo)
self.show_popup(self.photo,event)
self.in_event = 0
return gtk.TRUE
elif event.type == gtk.gdk.BUTTON_RELEASE:
@ -562,7 +564,7 @@ class Gallery(ImageSelect):
(i,t,b,photo,oid) = self.p_map[self.sel]
LocalMediaProperties(photo,self.path,self)
def show_popup(self, photo):
def show_popup(self, photo, event):
"""Look for right-clicks on a picture and create a popup
menu of the available actions."""
@ -582,7 +584,7 @@ class Gallery(ImageSelect):
if object.getLocal() == 0:
Utils.add_menuitem(menu,_("Convert to local copy"),photo,
self.popup_convert_to_private)
menu.popup(None,None,None,0,0)
menu.popup(None,None,None,event.button,event.time)
def popup_view_photo(self, obj):
"""Open this picture in a picture viewer"""