From f7d649d72425b995b8b2998bec91516146cb380a Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 26 Dec 2008 16:31:03 +0000 Subject: [PATCH] completely remove the config file monitoring, as it has too much potential for failure and very little win to offer in return --- terminatorlib/config.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 2f1737d7..8d10906e 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -35,11 +35,6 @@ import os, platform, sys, re import pwd import gtk, pango -try: - import gio -except ImportError: - pass - # set this to true to enable debugging output # These should be moved somewhere better. debug = False @@ -219,25 +214,11 @@ class TerminatorConfValuestoreRC (TerminatorConfValuestore): dbg(" VS_RCFile: config file located at %s" % self.rcfilename) self.call_parser(True) - #try: - # monfile = gio.File(self.rcfilename) - # monmon = monfile.monitor_file() - # monmon.connect("changed", self.file_changed) - #except NameError: - # dbg ("gio module not found, config file monitoring disabled") - def set_reconfigure_callback (self, function): dbg (" VS_RCFile: setting callback to: %s"%function) self.reconfigure_callback = function return (True) - def file_changed (self, monitor, file, unknown, event): - if event == gio.FILE_MONITOR_EVENT_CHANGES_DONE_HINT: - dbg (" VS_RCFile: config file changed, reload") - self.values = {} - self.call_parser() - self.reconfigure_callback() - def call_parser (self, is_init = False): dbg (" VS_RCFile: parsing config file") try: