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
|
from borg import Borg
|
||||||
|
|
||||||
groupsend_type = {'all':0, 'group':1, 'off':2}
|
|
||||||
|
|
||||||
class Terminator(Borg):
|
class Terminator(Borg):
|
||||||
"""master object for the application"""
|
"""master object for the application"""
|
||||||
|
@ -16,6 +15,7 @@ class Terminator(Borg):
|
||||||
groups = None
|
groups = None
|
||||||
config = None
|
config = None
|
||||||
groupsend = None
|
groupsend = None
|
||||||
|
groupsend_type = {'all':0, 'group':1, 'off':2}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Class initialiser"""
|
"""Class initialiser"""
|
||||||
|
@ -31,7 +31,7 @@ class Terminator(Borg):
|
||||||
if not self.groups:
|
if not self.groups:
|
||||||
self.groups = []
|
self.groups = []
|
||||||
if not self.groupsend:
|
if not self.groupsend:
|
||||||
self.groupsend = groupsend_type['group']
|
self.groupsend = self.groupsend_type['group']
|
||||||
|
|
||||||
def register_terminal(self, terminal):
|
def register_terminal(self, terminal):
|
||||||
"""Register a new terminal widget"""
|
"""Register a new terminal widget"""
|
||||||
|
|
|
@ -7,7 +7,7 @@ import gtk
|
||||||
import gobject
|
import gobject
|
||||||
|
|
||||||
from version import APP_NAME
|
from version import APP_NAME
|
||||||
from newterminator import Terminator, groupsend_type
|
from newterminator import Terminator
|
||||||
from editablelabel import EditableLabel
|
from editablelabel import EditableLabel
|
||||||
|
|
||||||
# pylint: disable-msg=R0904
|
# pylint: disable-msg=R0904
|
||||||
|
@ -45,6 +45,7 @@ class Titlebar(gtk.EventBox):
|
||||||
self.grouplabel = gtk.Label()
|
self.grouplabel = gtk.Label()
|
||||||
self.groupicon = gtk.Image()
|
self.groupicon = gtk.Image()
|
||||||
|
|
||||||
|
groupsend_type = self.terminator.groupsend_type
|
||||||
if self.terminator.groupsend == groupsend_type['all']:
|
if self.terminator.groupsend == groupsend_type['all']:
|
||||||
icon_name = 'all'
|
icon_name = 'all'
|
||||||
elif self.terminator.groupsend == groupsend_type['group']:
|
elif self.terminator.groupsend == groupsend_type['group']:
|
||||||
|
|
Loading…
Reference in New Issue