Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/poll.py
diff options
context:
space:
mode:
authorMorgan Collett <morgan.collett@gmail.com>2007-10-29 12:06:33 (GMT)
committer Morgan Collett <morgan.collett@gmail.com>2007-10-29 12:06:33 (GMT)
commitd9d69256a33914772a29a152e46785276c81fb17 (patch)
tree3d731c3c67b3a01d24bb2f0bbd6d86920c790798 /poll.py
parenta8e8911588ea01db8091448c0f584fa032d6902a (diff)
gtk theme from hmmmbird (morgs)
Diffstat (limited to 'poll.py')
-rw-r--r--poll.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/poll.py b/poll.py
index 03c4ca1..e097825 100644
--- a/poll.py
+++ b/poll.py
@@ -160,6 +160,16 @@ class PollBuilder(activity.Activity):
self._logger = logging.getLogger('poll-activity')
self._logger.debug('Starting Poll activity')
+ # customise theme
+ gtkrc = os.path.join(activity.bundle_path(), 'resources/gtkrc')
+ if os.path.exists(gtkrc)
+ self._loggeerebug("Loading resources from %s" % gtkrc)
+ gtk.rc_add_default_file(gtkrc)
+ settings = gtk.settings_get_default()
+ gtk.rc_reparse_all_for_settings(settings, True)
+ self._logger.debug("Loading resources DONE")
+ # FIXME: test this ^^^ and remove other theme stuff
+
# get the Presence Service
self.pservice = presenceservice.get_instance()
name, path = self.pservice.get_preferred_connection()