2009-12-18 00:45:08 +00:00
|
|
|
# Terminator by Chris Jones <cmsj@tenshu.net?
|
|
|
|
# GPL v2 only
|
|
|
|
"""terminal_menu.py - Default plugins for the terminal menu"""
|
|
|
|
import gtk
|
2010-01-04 13:46:55 +00:00
|
|
|
import terminatorlib.plugin as plugin
|
2009-12-18 00:45:08 +00:00
|
|
|
|
|
|
|
# Every plugin you want Terminator to load *must* be listed in 'available'
|
|
|
|
|
|
|
|
# This is commented out because we don't want any menu item plugins by default
|
|
|
|
#available = ['MyFirstMenuItem']
|
|
|
|
available = []
|
|
|
|
|
2010-01-05 22:22:13 +00:00
|
|
|
class MyFirstMenuItem(plugin.MenuItem):
|
2009-12-18 00:45:08 +00:00
|
|
|
"""Simple proof of concept"""
|
|
|
|
capabilities = ['terminal_menu']
|
|
|
|
|
|
|
|
def callback(self, menuitems, menu, terminal):
|
|
|
|
"""Add our menu items to the menu"""
|
|
|
|
item = gtk.MenuItem('Some Menu Text')
|
|
|
|
menuitems.append(item)
|
|
|
|
|