From 67c0d0bb8426ed312ab90ad8e7956daa641ee55e Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 19 May 2008 00:42:08 +0100 Subject: [PATCH] Make TerminatorTerm extend gtk.VBox rather than having hacks to behave like it. Patch by Chris Oattes. Allows us to beging removing get_box() --- terminator | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/terminator b/terminator index c679e3b6..9713fe74 100755 --- a/terminator +++ b/terminator @@ -72,11 +72,12 @@ def openurl (url): except: pass -class TerminatorTerm: +class TerminatorTerm (gtk.VBox): matches = {} def __init__ (self, terminator, profile = None, command = None, cwd = None): + gtk.VBox.__init__ (self) self.terminator = terminator self.conf = terminator.conf self.command = command @@ -99,10 +100,9 @@ class TerminatorTerm: self._title.show() self._titlebox = gtk.EventBox() self._titlebox.add(self._title) - self._box = gtk.VBox () - self._box.show() - self._box.pack_start(self._titlebox, False) - self._box.pack_start(self._termbox) + self..show() + self.pack_start(self._titlebox, False) + self.pack_start(self._termbox) if len(self.terminator.term_list) > 0 and self.conf.titlebars: if len(self.terminator.term_list) == 1: self.terminator.term_list[0]._titlebox.show() @@ -563,7 +563,7 @@ class TerminatorTerm: self.terminator.set_window_title("%s: %s" %(APP_NAME.capitalize(), vte.get_window_title ())) def get_box (self): - return self._box + return self class Terminator: def __init__ (self, profile, command = None, fullscreen = False, maximise = False, borderless = False):