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

svn: r2274
This commit is contained in:
Alex Roitman 2003-10-21 22:31:37 +00:00
parent 565e55f84a
commit 2f99f02e5f
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2003-10-21 Alex Roitman <shura@alex.neuro.umn.edu>
* src/MediaView.py: Correct behavior for right-click popup menu.
2003-10-20 Don Allingham <dallingham@users.sourceforge.net>
* src/gramps.glade: widen the ChildSelect window
* src/SelectPerson.py: sort people before adding to list

View File

@ -174,11 +174,11 @@ class MediaView:
self.on_edit_clicked(obj)
return 1
elif event.button == 3:
self.build_context_menu()
self.build_context_menu(event)
return 1
return 0
def build_context_menu(self):
def build_context_menu(self,event):
menu = gtk.Menu()
menu.set_title(_("Media Object"))
@ -214,7 +214,7 @@ class MediaView:
item.set_sensitive(sensitivity)
item.show()
menu.append(item)
menu.popup(None,None,None,0,0)
menu.popup(None,None,None,event.button,event.time)
def popup_view_photo(self, obj):
Utils.view_photo(self.obj)