Add and improve the mnemonics in the group menu
This commit is contained in:
parent
ce96f8a702
commit
c9d1259fd5
|
@ -412,12 +412,12 @@ class Terminal(gtk.VBox):
|
||||||
menu = gtk.Menu()
|
menu = gtk.Menu()
|
||||||
groupitem = None
|
groupitem = None
|
||||||
|
|
||||||
item = gtk.MenuItem(_('New group...'))
|
item = gtk.MenuItem(_('N_ew group...'))
|
||||||
item.connect('activate', self.create_group)
|
item.connect('activate', self.create_group)
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
if len(self.terminator.groups) > 0:
|
if len(self.terminator.groups) > 0:
|
||||||
groupitem = gtk.RadioMenuItem(groupitem, _('None'))
|
groupitem = gtk.RadioMenuItem(groupitem, _('_None'))
|
||||||
groupitem.set_active(self.group == None)
|
groupitem.set_active(self.group == None)
|
||||||
groupitem.connect('activate', self.set_group, None)
|
groupitem.connect('activate', self.set_group, None)
|
||||||
menu.append(groupitem)
|
menu.append(groupitem)
|
||||||
|
@ -443,7 +443,7 @@ class Terminal(gtk.VBox):
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
if len(self.terminator.groups) > 0:
|
if len(self.terminator.groups) > 0:
|
||||||
item = gtk.MenuItem(_('Ungr_oup all in tab'))
|
item = gtk.MenuItem(_('Ungro_up all in tab'))
|
||||||
item.connect('activate', lambda x: self.emit('ungroup_tab'))
|
item.connect('activate', lambda x: self.emit('ungroup_tab'))
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
|
@ -464,9 +464,9 @@ class Terminal(gtk.VBox):
|
||||||
|
|
||||||
groupitem = None
|
groupitem = None
|
||||||
|
|
||||||
for key, value in {_('Broadcast all'):'all',
|
for key, value in {_('Broadcast _all'):'all',
|
||||||
_('Broadcast group'):'group',
|
_('Broadcast _group'):'group',
|
||||||
_('Broadcast off'):'off'}.items():
|
_('Broadcast _off'):'off'}.items():
|
||||||
groupitem = gtk.RadioMenuItem(groupitem, key)
|
groupitem = gtk.RadioMenuItem(groupitem, key)
|
||||||
dbg('Terminal::populate_group_menu: %s active: %s' %
|
dbg('Terminal::populate_group_menu: %s active: %s' %
|
||||||
(key, self.terminator.groupsend ==
|
(key, self.terminator.groupsend ==
|
||||||
|
@ -479,23 +479,23 @@ class Terminal(gtk.VBox):
|
||||||
|
|
||||||
menu.append(gtk.MenuItem())
|
menu.append(gtk.MenuItem())
|
||||||
|
|
||||||
item = gtk.CheckMenuItem(_('Split to this group'))
|
item = gtk.CheckMenuItem(_('_Split to this group'))
|
||||||
item.set_active(self.config['split_to_group'])
|
item.set_active(self.config['split_to_group'])
|
||||||
item.connect('toggled', lambda x: self.do_splittogroup_toggle())
|
item.connect('toggled', lambda x: self.do_splittogroup_toggle())
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
item = gtk.CheckMenuItem(_('Autoclean groups'))
|
item = gtk.CheckMenuItem(_('Auto_clean groups'))
|
||||||
item.set_active(self.config['autoclean_groups'])
|
item.set_active(self.config['autoclean_groups'])
|
||||||
item.connect('toggled', lambda x: self.do_autocleangroups_toggle())
|
item.connect('toggled', lambda x: self.do_autocleangroups_toggle())
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
menu.append(gtk.MenuItem())
|
menu.append(gtk.MenuItem())
|
||||||
|
|
||||||
item = gtk.MenuItem(_('Insert terminal number'))
|
item = gtk.MenuItem(_('_Insert terminal number'))
|
||||||
item.connect('activate', lambda x: self.emit('enumerate', False))
|
item.connect('activate', lambda x: self.emit('enumerate', False))
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
item = gtk.MenuItem(_('Insert padded terminal number'))
|
item = gtk.MenuItem(_('Insert _padded terminal number'))
|
||||||
item.connect('activate', lambda x: self.emit('enumerate', True))
|
item.connect('activate', lambda x: self.emit('enumerate', True))
|
||||||
menu.append(item)
|
menu.append(item)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue