Commit 10dbf54f authored by Jannis Pohlmann's avatar Jannis Pohlmann

Use g_utf8_strlen to calculate the sidepane width. Bugs #5390 and #3965.

Using strlen() for the number of characters is unrealistic when dealing
with multibyte strings.
parent 2028e116
......@@ -274,7 +274,7 @@ thunar_shortcuts_view_init (ThunarShortcutsView *view)
renderer = g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
"ellipsize-set", TRUE,
"ellipsize", PANGO_ELLIPSIZE_END,
"width-chars", strlen (_("File System")),
"width-chars", g_utf8_strlen (_("File System"), -1),
NULL);
g_signal_connect (G_OBJECT (renderer), "edited", G_CALLBACK (thunar_shortcuts_view_renamed), view);
gtk_tree_view_column_pack_start (column, renderer, TRUE);
......
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