add "Insert Terminal Name" to the group menu
This commit is contained in:
parent
3d63c91517
commit
35e7e026cd
|
@ -1,7 +1,6 @@
|
|||
from gi.repository import Gtk
|
||||
|
||||
import terminatorlib.plugin as plugin
|
||||
from terminatorlib.terminator import Terminator
|
||||
|
||||
AVAILABLE = ['InsertTermName']
|
||||
|
||||
|
@ -10,7 +9,6 @@ class InsertTermName(plugin.MenuItem):
|
|||
config = None
|
||||
|
||||
def __init__(self):
|
||||
# self.connect_signals()
|
||||
plugin.MenuItem.__init__(self)
|
||||
|
||||
def callback(self, menuitems, menu, terminal):
|
||||
|
|
|
@ -587,6 +587,10 @@ class Terminal(Gtk.VBox):
|
|||
item.connect('activate', lambda x: self.emit('enumerate', True))
|
||||
menu.append(item)
|
||||
|
||||
item = Gtk.MenuItem.new_with_mnemonic(_('Insert terminal _name'))
|
||||
item.connect('activate', lambda x: self.emit('insert-term-name'))
|
||||
menu.append(item)
|
||||
|
||||
return(menu)
|
||||
|
||||
def set_group(self, _item, name):
|
||||
|
|
Loading…
Reference in New Issue