From 66122b369e06d517fb5e8a9a7dd3002f3fc660ac Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 2 Dec 2010 14:52:22 +0000 Subject: [PATCH] gtk: Centre the text under the icon in GtkIconView No point in setting the alignment to centre if we don't center it within the cell itself. --- gtk/gtkiconview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 8a3defdb80..17ce6af25b 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -5618,7 +5618,7 @@ update_text_cell (GtkIconView *icon_view) g_object_set (info->cell, "alignment", PANGO_ALIGN_CENTER, "wrap-mode", PANGO_WRAP_WORD_CHAR, - "xalign", 0.0, + "xalign", 0.5, "yalign", 0.0, NULL); else @@ -5626,7 +5626,7 @@ update_text_cell (GtkIconView *icon_view) "alignment", PANGO_ALIGN_LEFT, "wrap-mode", PANGO_WRAP_WORD_CHAR, "xalign", 0.0, - "yalign", 0.0, + "yalign", 0.5, NULL); } }