diff --git a/terminatorlib/newterminator.py b/terminatorlib/newterminator.py index b1853aa1..b3b9e772 100755 --- a/terminatorlib/newterminator.py +++ b/terminatorlib/newterminator.py @@ -5,7 +5,6 @@ from borg import Borg -groupsend_type = {'all':0, 'group':1, 'off':2} class Terminator(Borg): """master object for the application""" @@ -16,6 +15,7 @@ class Terminator(Borg): groups = None config = None groupsend = None + groupsend_type = {'all':0, 'group':1, 'off':2} def __init__(self): """Class initialiser""" @@ -31,7 +31,7 @@ class Terminator(Borg): if not self.groups: self.groups = [] if not self.groupsend: - self.groupsend = groupsend_type['group'] + self.groupsend = self.groupsend_type['group'] def register_terminal(self, terminal): """Register a new terminal widget""" diff --git a/terminatorlib/titlebar.py b/terminatorlib/titlebar.py index 8f7c3e1e..38f32c04 100755 --- a/terminatorlib/titlebar.py +++ b/terminatorlib/titlebar.py @@ -7,7 +7,7 @@ import gtk import gobject from version import APP_NAME -from newterminator import Terminator, groupsend_type +from newterminator import Terminator from editablelabel import EditableLabel # pylint: disable-msg=R0904 @@ -45,6 +45,7 @@ class Titlebar(gtk.EventBox): self.grouplabel = gtk.Label() self.groupicon = gtk.Image() + groupsend_type = self.terminator.groupsend_type if self.terminator.groupsend == groupsend_type['all']: icon_name = 'all' elif self.terminator.groupsend == groupsend_type['group']: