Commit 66122b36 authored by Bastien Nocera's avatar Bastien Nocera

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.
parent dd678ac3
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment