Add icons to the horizontal/vertical splits, which should help with the confusing usability issues wrt this feature

This commit is contained in:
Chris Jones 2008-06-04 10:57:13 +01:00
parent 400b5712c6
commit 7f4461c280
2 changed files with 5 additions and 2 deletions

View File

@ -79,6 +79,7 @@ setup(name='Terminator',
('share/pixmaps', ['data/icons/48x48/apps/terminator.png']), ('share/pixmaps', ['data/icons/48x48/apps/terminator.png']),
('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')), ('share/icons/hicolor/scalable/apps', glob.glob('data/icons/scalable/apps/*.svg')),
('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')), ('share/icons/hicolor/16x16/apps', glob.glob('data/icons/16x16/apps/*.png')),
('share/icons/hicolor/16x16/actions', glob.glob('data/icons/16x16/actions/*.png')),
('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')), ('share/icons/hicolor/22x22/apps', glob.glob('data/icons/22x22/apps/*.png')),
('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')), ('share/icons/hicolor/24x24/apps', glob.glob('data/icons/24x24/apps/*.png')),
('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')), ('share/icons/hicolor/48x48/apps', glob.glob('data/icons/48x48/apps/*.png')),

View File

@ -733,11 +733,13 @@ text/plain
menu.append (item) menu.append (item)
if not self.terminator._zoomed: if not self.terminator._zoomed:
item = gtk.MenuItem (_("Split H_orizontally")) item = gtk.ImageMenuItem (_("Split H_orizontally"))
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_horiz', 16, 0))
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.MenuItem (_("Split V_ertically")) item = gtk.ImageMenuItem (_("Split V_ertically"))
item.set_property('image', self.terminator.icon_theme.load_icon (APP_NAME + '_vert', 16, 0))
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)