Make TerminatorTerm extend gtk.VBox rather than having hacks to behave like it. Patch by Chris Oattes. Allows us to beging removing get_box()

This commit is contained in:
Chris Jones 2008-05-19 00:42:08 +01:00
parent 6296fe871f
commit 67c0d0bb84
1 changed files with 6 additions and 6 deletions

View File

@ -72,11 +72,12 @@ def openurl (url):
except: except:
pass pass
class TerminatorTerm: class TerminatorTerm (gtk.VBox):
matches = {} matches = {}
def __init__ (self, terminator, profile = None, command = None, cwd = None): def __init__ (self, terminator, profile = None, command = None, cwd = None):
gtk.VBox.__init__ (self)
self.terminator = terminator self.terminator = terminator
self.conf = terminator.conf self.conf = terminator.conf
self.command = command self.command = command
@ -99,10 +100,9 @@ class TerminatorTerm:
self._title.show() self._title.show()
self._titlebox = gtk.EventBox() self._titlebox = gtk.EventBox()
self._titlebox.add(self._title) self._titlebox.add(self._title)
self._box = gtk.VBox () self..show()
self._box.show() self.pack_start(self._titlebox, False)
self._box.pack_start(self._titlebox, False) self.pack_start(self._termbox)
self._box.pack_start(self._termbox)
if len(self.terminator.term_list) > 0 and self.conf.titlebars: if len(self.terminator.term_list) > 0 and self.conf.titlebars:
if len(self.terminator.term_list) == 1: if len(self.terminator.term_list) == 1:
self.terminator.term_list[0]._titlebox.show() 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 ())) self.terminator.set_window_title("%s: %s" %(APP_NAME.capitalize(), vte.get_window_title ()))
def get_box (self): def get_box (self):
return self._box return self
class Terminator: class Terminator:
def __init__ (self, profile, command = None, fullscreen = False, maximise = False, borderless = False): def __init__ (self, profile, command = None, fullscreen = False, maximise = False, borderless = False):