Add Gallery 'Make Active Media'
svn: r23268
This commit is contained in:
parent
0c135d3ae8
commit
f44ab17578
@ -149,6 +149,14 @@ class GalleryTab(ButtonTab, DbGUIElement):
|
|||||||
item.show()
|
item.show()
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
|
item = gtk.MenuItem(_('Make Active Media'))
|
||||||
|
item.connect('activate', lambda obj: self.uistate.set_active(ref_obj.handle, "Media"))
|
||||||
|
item.show()
|
||||||
|
menu.append(item)
|
||||||
|
item = gtk.SeparatorMenuItem()
|
||||||
|
item.show()
|
||||||
|
menu.append(item)
|
||||||
|
|
||||||
for (needs_write_access, image, title, func) in itemlist:
|
for (needs_write_access, image, title, func) in itemlist:
|
||||||
if image:
|
if image:
|
||||||
item = gtk.ImageMenuItem(stock_id=title)
|
item = gtk.ImageMenuItem(stock_id=title)
|
||||||
|
Loading…
Reference in New Issue
Block a user