[gnome-clocks] Set wrap mode on the text cell renderer
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Set wrap mode on the text cell renderer
- Date: Sat, 15 Dec 2012 09:20:13 +0000 (UTC)
commit b78b999db7498755b9163a7e11c423f66bc0a74b
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Dec 15 10:19:27 2012 +0100
Set wrap mode on the text cell renderer
gnomeclocks/widgets.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gnomeclocks/widgets.py b/gnomeclocks/widgets.py
index c8b6997..a86f69b 100644
--- a/gnomeclocks/widgets.py
+++ b/gnomeclocks/widgets.py
@@ -193,6 +193,9 @@ class SelectableIconView(Gtk.IconView):
renderer_text = Gtk.CellRendererText()
renderer_text.set_alignment(0.5, 0.5)
+ renderer_text.set_fixed_size(160, -1)
+ renderer_text.props.wrap_width = 160
+ renderer_text.props.wrap_mode = Pango.WrapMode.WORD_CHAR
self.pack_start(renderer_text, True)
self.add_attribute(renderer_text, "markup", text_col)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]