diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2009-09-18 23:41:06 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2009-09-18 23:41:06 +0200 |
commit | 10dbf54f58c1b78e2f65863212e1e2179f24e318 (patch) | |
tree | cb805b277db07a1ebc19f19e2994d4608df256a3 | |
parent | 2028e116ebf36bf0461f1d2f5b186c84259cb89c (diff) | |
download | thunar-progress-dialog-experiments.tar.gz |
Use g_utf8_strlen to calculate the sidepane width. Bugs #5390 and #3965.progress-dialog-experiments
Using strlen() for the number of characters is unrealistic when dealing
with multibyte strings.
-rw-r--r-- | thunar/thunar-shortcuts-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thunar/thunar-shortcuts-view.c b/thunar/thunar-shortcuts-view.c index 2ba4b615..c7df1826 100644 --- a/thunar/thunar-shortcuts-view.c +++ b/thunar/thunar-shortcuts-view.c @@ -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); |