summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Williams <crdlb@compiz-fusion.org>2008-09-03 22:05:01 -0400
committerChristopher Williams <crdlb@compiz-fusion.org>2008-09-03 22:05:01 -0400
commitba4406da9b0b7c28370266acda47fb66dcb2bbad (patch)
tree9d412edd712bc50c47cae156ca2df8956f8e39aa
parentd9960ca73f990bb73fd577744e7937f98c8bc3cd (diff)
downloadccsm-ba4406da9b0b7c28370266acda47fb66dcb2bbad.tar.gz
ccsm-ba4406da9b0b7c28370266acda47fb66dcb2bbad.tar.bz2
Use the pango.WrapMode enum instead of gtk.WrapMode for the gtk.Label
wrap-mode property. This fixes enumeration type errors with recent pygobject.
-rw-r--r--ccm/Settings.py2
-rw-r--r--ccm/Utils.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/ccm/Settings.py b/ccm/Settings.py
index 8a39e3e..16b28b5 100644
--- a/ccm/Settings.py
+++ b/ccm/Settings.py
@@ -117,7 +117,7 @@ class Setting(object):
label.set_markup("<span%s>%s</span>" % (style, desc))
label.props.xalign = 0
label.set_size_request(160, -1)
- label.props.wrap_mode = gtk.WRAP_WORD
+ label.props.wrap_mode = pango.WRAP_WORD
label.set_line_wrap(True)
self.Label = label
diff --git a/ccm/Utils.py b/ccm/Utils.py
index 2a7d6c9..af71870 100644
--- a/ccm/Utils.py
+++ b/ccm/Utils.py
@@ -27,6 +27,7 @@ import pygtk
import gtk
import gtk.gdk
import gobject
+import pango
import weakref
from ccm.Constants import *
@@ -188,7 +189,7 @@ class Label(gtk.Label):
def __init__(self, value = "", wrap = 160):
gtk.Label.__init__(self, value)
self.props.xalign = 0
- self.props.wrap_mode = gtk.WRAP_WORD
+ self.props.wrap_mode = pango.WRAP_WORD
self.set_line_wrap(True)
self.set_size_request(wrap, -1)