From fdcd1c89f932d85b15c2ab178bbe5cc875bd47f3 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 12 Oct 2009 22:05:19 +0100 Subject: [PATCH] Add signals for when we want to be zoomed or maximised --- terminatorlib/terminal.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 8893b467..a83eaa43 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -47,6 +47,8 @@ class Terminal(gtk.VBox): 'tab-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'tab-top-new': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), 'focus-in': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), + 'zoom': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), + 'maximise': (gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, ()), } TARGET_TYPE_VTE = 8 @@ -521,11 +523,11 @@ class Terminal(gtk.VBox): def zoom(self): """Zoom ourself to fill the window""" - pass + self.emit('zoom') def maximise(self): """Maximise ourself to fill the window""" - pass + self.emit('maximise') def spawn_child(self, widget=None): update_records = self.config['update_records']