[gnome-clocks] Force centered alignment also when we wrap
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Force centered alignment also when we wrap
- Date: Tue, 19 Feb 2013 19:46:23 +0000 (UTC)
commit 3542b9417d989bb394cf97b5be7adcd08fa0a268
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Feb 19 17:42:04 2013 +0100
Force centered alignment also when we wrap
src/widgets.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/widgets.vala b/src/widgets.vala
index 2bec91d..4235638 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -266,6 +266,7 @@ public class IconView : Gtk.IconView {
var text_renderer = new Gtk.CellRendererText ();
text_renderer.set_alignment (0.5f, 0.5f);
text_renderer.set_fixed_size (160, -1);
+ text_renderer.alignment = Pango.Alignment.CENTER;
text_renderer.wrap_width = 140;
text_renderer.wrap_mode = Pango.WrapMode.WORD_CHAR;
pack_start (text_renderer, true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]