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.
This commit is contained in:
Bastien Nocera 2010-12-02 14:52:22 +00:00
parent dd678ac323
commit 66122b369e

View File

@ -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);
}
}