From 778e499896ffac40752a6c752d57b4e4ef9be191 Mon Sep 17 00:00:00 2001 From: Djihed Afifi Date: Sun, 13 Jan 2008 13:31:47 +0000 Subject: [PATCH] RTL marker in recent file list. See bug #509076. 2008-01-13 Djihed Afifi * shell/ev-window.c: (ev_window_get_recent_file_label): RTL marker in recent file list. See bug #509076. svn path=/trunk/; revision=2818 --- ChangeLog | 6 ++++++ shell/ev-window.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 53745894..a8570398 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-01-13 Djihed Afifi + + * shell/ev-window.c: (ev_window_get_recent_file_label): + + RTL marker in recent file list. See bug #509076. + 2008-01-13 Carlos Garcia Campos * backend/djvu/djvu-text-page.c: (djvu_text_page_limits): diff --git a/shell/ev-window.c b/shell/ev-window.c index 6e28d9c5..8ad2dad0 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1827,12 +1827,15 @@ ev_window_get_recent_file_label (gint index, const gchar *filename) gint length; const gchar *p; const gchar *end; - + gboolean is_rtl; + + is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL); + g_return_val_if_fail (filename != NULL, NULL); length = strlen (filename); str = g_string_sized_new (length + 10); - g_string_printf (str, "_%d. ", index); + g_string_printf (str, "%s_%d. ", is_rtl ? "\xE2\x80\x8F" : "", index); p = filename; end = filename + length; -- 2.43.5