make the icon parts fail more gracefully, and add our menu icons to the branch
This commit is contained in:
parent
519eb4525c
commit
36d4654979
Binary file not shown.
After Width: | Height: | Size: 141 B |
Binary file not shown.
After Width: | Height: | Size: 139 B |
12
terminator
12
terminator
|
@ -733,13 +733,21 @@ text/plain
|
||||||
menu.append (item)
|
menu.append (item)
|
||||||
|
|
||||||
if not self.terminator._zoomed:
|
if not self.terminator._zoomed:
|
||||||
item = gtk.ImageMenuItem (_("Split H_orizontally"))
|
str_horiz = _("Split H_orizontally")
|
||||||
|
str_vert = _("Split V_ertically")
|
||||||
|
try:
|
||||||
|
item = gtk.ImageMenuItem (str_horiz)
|
||||||
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_horiz', 16, 0))
|
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_horiz', 16, 0))
|
||||||
|
except:
|
||||||
|
item = gtk.MenuItem (str_horiz)
|
||||||
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, False))
|
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, False))
|
||||||
menu.append (item)
|
menu.append (item)
|
||||||
|
|
||||||
item = gtk.ImageMenuItem (_("Split V_ertically"))
|
try:
|
||||||
|
item = gtk.ImageMenuItem (str_vert)
|
||||||
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_vert', 16, 0))
|
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_vert', 16, 0))
|
||||||
|
except:
|
||||||
|
item = gtk.MenuItem (str_vert)
|
||||||
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, True))
|
item.connect ("activate", lambda menu_item: self.terminator.splitaxis (self, True))
|
||||||
menu.append (item)
|
menu.append (item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue