Ignore a gconf change signal if it's just for the profile's visible_name, which gnome-terminal seems to set on every run. Should fix LP #268476
This commit is contained in:
parent
b623f662e8
commit
91b8527e2e
|
@ -365,8 +365,12 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
|
||||||
def on_gconf_notify (self, client, cnxn_id, entry, what):
|
def on_gconf_notify (self, client, cnxn_id, entry, what):
|
||||||
dbg (" VSGConf: invalidating cache")
|
dbg (" VSGConf: invalidating cache")
|
||||||
self.cache = {}
|
self.cache = {}
|
||||||
dbg (" VSGConf: gconf changed, callback is: %s"%self.reconfigure_callback)
|
dbg (" VSGConf: gconf changed, may run a callback. %s, %s"%(entry.key, entry.value))
|
||||||
|
if entry.key[-12:] == 'visible_name':
|
||||||
|
dbg (" VSGConf: only a visible_name change, ignoring")
|
||||||
|
return False
|
||||||
if self.reconfigure_callback:
|
if self.reconfigure_callback:
|
||||||
|
dbg (" VSGConf: callback is: %s"%self.reconfigure_callback)
|
||||||
self.reconfigure_callback ()
|
self.reconfigure_callback ()
|
||||||
|
|
||||||
def __getitem__ (self, key = ""):
|
def __getitem__ (self, key = ""):
|
||||||
|
|
Loading…
Reference in New Issue