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