* src/MediaView.py: Correct behavior for right-click popup menu.
svn: r2274
This commit is contained in:
parent
565e55f84a
commit
2f99f02e5f
@ -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>
|
2003-10-20 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/gramps.glade: widen the ChildSelect window
|
* src/gramps.glade: widen the ChildSelect window
|
||||||
* src/SelectPerson.py: sort people before adding to list
|
* src/SelectPerson.py: sort people before adding to list
|
||||||
|
@ -174,11 +174,11 @@ class MediaView:
|
|||||||
self.on_edit_clicked(obj)
|
self.on_edit_clicked(obj)
|
||||||
return 1
|
return 1
|
||||||
elif event.button == 3:
|
elif event.button == 3:
|
||||||
self.build_context_menu()
|
self.build_context_menu(event)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def build_context_menu(self):
|
def build_context_menu(self,event):
|
||||||
menu = gtk.Menu()
|
menu = gtk.Menu()
|
||||||
menu.set_title(_("Media Object"))
|
menu.set_title(_("Media Object"))
|
||||||
|
|
||||||
@ -214,7 +214,7 @@ class MediaView:
|
|||||||
item.set_sensitive(sensitivity)
|
item.set_sensitive(sensitivity)
|
||||||
item.show()
|
item.show()
|
||||||
menu.append(item)
|
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):
|
def popup_view_photo(self, obj):
|
||||||
Utils.view_photo(self.obj)
|
Utils.view_photo(self.obj)
|
||||||
|
Loading…
Reference in New Issue
Block a user