summaryrefslogtreecommitdiff
path: root/portato/gui/utils.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-07-10 00:17:46 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-07-10 00:17:46 +0200
commit9693723ebf004aea7947b1c68c7c8e0b949510cd (patch)
treebd8c8ba5d2977c897e0331024235dfc504fd8003 /portato/gui/utils.py
parente07df981122c71195aacec7f06fdb62227c257e2 (diff)
downloadportato-9693723ebf004aea7947b1c68c7c8e0b949510cd.tar.gz
portato-9693723ebf004aea7947b1c68c7c8e0b949510cd.tar.bz2
portato-9693723ebf004aea7947b1c68c7c8e0b949510cd.zip
Moved color info to config
Diffstat (limited to '')
-rw-r--r--portato/gui/utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/portato/gui/utils.py b/portato/gui/utils.py
index 923f2fa..cd5c50c 100644
--- a/portato/gui/utils.py
+++ b/portato/gui/utils.py
@@ -21,6 +21,8 @@ from collections import defaultdict
from threading import Thread, RLock
from functools import wraps
+import gtk
+
# some backend things
from ..backend import flags, system, set_system
from ..helper import debug, info, set_log_level
@@ -29,6 +31,9 @@ from ..constants import APP, LOCALE_DIR
# parser
from ..config_parser import ConfigParser
+def get_color (cfg, name):
+ return gtk.gdk.color_parse("#%s" % cfg.get(name, section = "COLORS"))
+
class GtkThread (Thread):
def run(self):
# for some reason, I have to install this for each thread ...