on newer gtks we are likely to have menu icons disabled, force them on for the horiz/vert split items since they are deeply useful
This commit is contained in:
parent
a45344f98d
commit
88f005ee09
|
@ -1311,6 +1311,8 @@ text/plain
|
|||
item_image = gtk.Image ()
|
||||
item_image.set_from_icon_name (APP_NAME + '_horiz', gtk.ICON_SIZE_MENU)
|
||||
item.set_image (item_image)
|
||||
if hasattr(item, "set_always_show_image"):
|
||||
item.set_always_show_image (True)
|
||||
|
||||
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, False))
|
||||
menu.append (item)
|
||||
|
@ -1318,6 +1320,8 @@ text/plain
|
|||
item_image = gtk.Image ()
|
||||
item_image.set_from_icon_name (APP_NAME + '_vert', gtk.ICON_SIZE_MENU)
|
||||
item.set_image (item_image)
|
||||
if hasattr(item, "set_always_show_image"):
|
||||
item.set_always_show_image (True)
|
||||
|
||||
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, True))
|
||||
menu.append (item)
|
||||
|
|
Loading…
Reference in New Issue