summaryrefslogtreecommitdiff
path: root/grc/core/Platform.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/Platform.py')
-rw-r--r--grc/core/Platform.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/grc/core/Platform.py b/grc/core/Platform.py
index 5bcf79c4b2..dfb60ee6a5 100644
--- a/grc/core/Platform.py
+++ b/grc/core/Platform.py
@@ -219,8 +219,9 @@ class Platform(Element):
color = n.find('color') or ''
try:
- import gtk # ugly but handy
- gtk.gdk.color_parse(color)
+ import gi # ugly but handy
+ from gi.repository import Gdk
+ Gdk.color_parse(color)
except (ValueError, ImportError):
if color: # no color is okay, default set in GUI
print >> sys.stderr, 'Warning: Can\'t parse color code "{}" for domain "{}" '.format(color, key)