no reason for the groupsend types to be global
This commit is contained in:
parent
1e4af9883b
commit
c40c360c20
|
@ -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"""
|
||||
|
|
|
@ -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']:
|
||||
|
|
Loading…
Reference in New Issue