From 21caae25175f053c43ea17cd9ef437bf1fa47935 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 21 Jan 2010 13:02:37 +0000 Subject: [PATCH] Start implementing a tab moving signal. It isn't handled yet. This is a regression from trunk until it is handled --- terminatorlib/terminal.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 1a6fcdac..3e7c0db6 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -62,6 +62,8 @@ class Terminal(gtk.VBox): 'ungroup-all': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'group-tab': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'ungroup-tab': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), + 'move-tab': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, + (gobject.TYPE_STRING,)), } TARGET_TYPE_VTE = 8 @@ -1184,11 +1186,13 @@ for %s (%s)' % (name, urlplugin.__class__.__name__)) def key_resize_right(self): self.emit('resize-term', 'right') + # FIXME: Nothing currently handles this signal. Make it so something does. def key_move_tab_right(self): - self.terminator.move_tab (self, 'right') + self.emit('move-tab', 'right') + # FIXME: Nothing currently handles this signal. Make it so something does. def key_move_tab_left(self): - self.terminator.move_tab (self, 'left') + self.emit('move-tab', 'left') def key_toggle_zoom(self): if self.is_zoomed():