Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-07-10 19:44:15 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-07-10 19:44:15 (GMT)
commite921da0ec82d15e601e693ed431ee3e08e6c7921 (patch)
treec3e19f6bc38bf762f03f1d16cd255a14e62f0db0
parent2d04c8361b1791fd8266145e8a2540f17a32e81b (diff)
Adapt to sugar API change
-rw-r--r--buddiespanel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buddiespanel.py b/buddiespanel.py
index b7d8216..665c371 100644
--- a/buddiespanel.py
+++ b/buddiespanel.py
@@ -5,7 +5,7 @@ import math
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics.xocolor import XoColor
from sugar.graphics import color
-from sugar.graphics import font
+from sugar.graphics import style
from sugar.graphics import units
@@ -142,7 +142,7 @@ class BuddiesPanel(hippo.CanvasBox):
orientation=hippo.ORIENTATION_HORIZONTAL)
hbox.append(BuddyPlayer(buddy))
- count_font = font.DEFAULT_BOLD.get_pango_desc()
+ count_font = style.FONT_BOLD.get_pango_desc()
count_font.set_size(30000)
count = hippo.CanvasText(text="0", color=color.WHITE.get_int(),
font_desc=count_font)