Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/graphics/style.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/graphics/style.py')
-rw-r--r--src/sugar3/graphics/style.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sugar3/graphics/style.py b/src/sugar3/graphics/style.py
index 7f48d9a..ba42175 100644
--- a/src/sugar3/graphics/style.py
+++ b/src/sugar3/graphics/style.py
@@ -25,9 +25,9 @@ STABLE.
import os
import logging
-import gtk
-import pango
-import gconf
+from gi.repository import Gtk
+from gi.repository import Pango
+from gi.repository import GConf
FOCUS_LINE_WIDTH = 2
@@ -53,7 +53,7 @@ class Font(object):
return self._desc
def get_pango_desc(self):
- return pango.FontDescription(self._desc)
+ return Pango.FontDescription(self._desc)
class Color(object):
@@ -70,7 +70,7 @@ class Color(object):
(int(self._g * 255) << 16) + (int(self._r * 255) << 24)
def get_gdk_color(self):
- return gtk.gdk.Color(int(self._r * 65535), int(self._g * 65535),
+ return Gdk.Color(int(self._r * 65535), int(self._g * 65535),
int(self._b * 65535))
def get_html(self):
@@ -115,7 +115,7 @@ MEDIUM_ICON_SIZE = zoom(55 * 1.5)
LARGE_ICON_SIZE = zoom(55 * 2.0)
XLARGE_ICON_SIZE = zoom(55 * 2.75)
-client = gconf.client_get_default()
+client = GConf.Client.get_default()
FONT_SIZE = client.get_float('/desktop/sugar/font/default_size')
FONT_FACE = client.get_string('/desktop/sugar/font/default_face')