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:
Chris Jones 2008-10-16 16:30:42 +01:00
parent b623f662e8
commit 91b8527e2e
1 changed files with 5 additions and 1 deletions

View File

@ -365,8 +365,12 @@ class TerminatorConfValuestoreGConf (TerminatorConfValuestore):
def on_gconf_notify (self, client, cnxn_id, entry, what):
dbg (" VSGConf: invalidating 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:
dbg (" VSGConf: callback is: %s"%self.reconfigure_callback)
self.reconfigure_callback ()
def __getitem__ (self, key = ""):