From 91b8527e2e48161f2d0ef30f21cd593862cbc3ab Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 16 Oct 2008 16:30:42 +0100 Subject: [PATCH] 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 --- terminatorlib/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index c6c20566..053e4357 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -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 = ""):