Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar/graphics/label.py
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-15 17:23:52 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-02-15 17:23:52 (GMT)
commit32c89a1fcb7a536455343b87dc799b800da66380 (patch)
tree45960295929ec126ff69ea5b7f275b58d5614254 /sugar/graphics/label.py
parent3353881920739cb85561abbd0bbdf6bede739f23 (diff)
New widget OptionMenu.
Diffstat (limited to 'sugar/graphics/label.py')
-rw-r--r--sugar/graphics/label.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sugar/graphics/label.py b/sugar/graphics/label.py
index deb3762..69caa1b 100644
--- a/sugar/graphics/label.py
+++ b/sugar/graphics/label.py
@@ -20,12 +20,12 @@ import logging
import gobject
import gtk
import hippo
-import pango
from sugar.graphics import style
from sugar.graphics.roundbox import RoundBox
from sugar.graphics.button import Button
from sugar.graphics.style import Color
+from sugar.graphics.font import Font
class Label(hippo.CanvasBox, hippo.CanvasItem):
__gtype_name__ = 'SugarLabel'
@@ -48,11 +48,7 @@ class Label(hippo.CanvasBox, hippo.CanvasItem):
self._canvas_text = hippo.CanvasText()
self._canvas_text.props.text = self._text
self._canvas_text.props.color = Color.LABEL_TEXT.get_int()
-
- fd = pango.FontDescription()
- fd.set_size(int(round(style.default_font_size * pango.SCALE)))
- self._canvas_text.props.font_desc = fd
-
+ self._canvas_text.props.font_desc = Font.DEFAULT.get_pango_desc()
self._round_box.append(self._canvas_text, hippo.PACK_EXPAND)
def do_set_property(self, pspec, value):