be more careful about static class properties
This commit is contained in:
parent
5e46e1a967
commit
2fb6b9b329
@ -159,10 +159,12 @@ Defaults = {
|
||||
class TerminatorConfig:
|
||||
"""This class is used as the base point of the config system"""
|
||||
callback = None
|
||||
sources = []
|
||||
sources = None
|
||||
_keys = None
|
||||
|
||||
def __init__ (self, sources):
|
||||
self._keys = None
|
||||
self.sources = []
|
||||
|
||||
for source in sources:
|
||||
if isinstance(source, TerminatorConfValuestore):
|
||||
self.sources.append (source)
|
||||
@ -201,9 +203,12 @@ class TerminatorConfig:
|
||||
|
||||
class TerminatorConfValuestore:
|
||||
type = "Base"
|
||||
values = {}
|
||||
values = None
|
||||
reconfigure_callback = None
|
||||
|
||||
def __init__ (self):
|
||||
self._values = {}
|
||||
|
||||
# Our settings
|
||||
def __getitem__ (self, keyname):
|
||||
if self.values.has_key (keyname):
|
||||
@ -349,12 +354,14 @@ Errors were encountered while parsing terminator_config(5) file:
|
||||
class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
|
||||
profile = ""
|
||||
client = None
|
||||
cache = {}
|
||||
notifies = {}
|
||||
cache = None
|
||||
notifies = None
|
||||
|
||||
def __init__ (self, profileName = None):
|
||||
self.type = "GConf"
|
||||
self.inactive = False
|
||||
self.cache = {}
|
||||
self.notifies = {}
|
||||
|
||||
import gconf
|
||||
|
||||
|
@ -127,7 +127,7 @@ class TerminatorNotebookTabLabel(gtk.HBox):
|
||||
|
||||
class Terminator:
|
||||
options = None
|
||||
groupings = []
|
||||
groupings = None
|
||||
|
||||
def __init__ (self, profile = None, command = None, fullscreen = False,
|
||||
maximise = False, borderless = False, no_gconf = False,
|
||||
@ -145,6 +145,7 @@ class Terminator:
|
||||
self.term_list = []
|
||||
self.gnome_client = None
|
||||
stores = []
|
||||
self.groupings = []
|
||||
|
||||
store = config.TerminatorConfValuestoreRC ()
|
||||
store.set_reconfigure_callback (self.reconfigure_vtes)
|
||||
|
@ -136,7 +136,7 @@ class TerminatorTermTitle (gtk.EventBox):
|
||||
|
||||
class TerminatorTerm (gtk.VBox):
|
||||
|
||||
matches = {}
|
||||
matches = None
|
||||
TARGET_TYPE_VTE = 8
|
||||
_custom_font_size = None
|
||||
_group = None
|
||||
@ -148,6 +148,7 @@ class TerminatorTerm (gtk.VBox):
|
||||
self.conf = terminator.conf
|
||||
self.command = command
|
||||
self._oldtitle = ""
|
||||
self.matches = {}
|
||||
|
||||
self.cwd = cwd or os.getcwd();
|
||||
if not os.path.exists(self.cwd) or not os.path.isdir(self.cwd):
|
||||
|
Loading…
Reference in New Issue
Block a user