Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--shell/ev-window.c7
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5374589..a857039 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-13 Djihed Afifi <djihed@gmail.com>
+
+ * 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 <carlosgc@gnome.org>
* backend/djvu/djvu-text-page.c: (djvu_text_page_limits):
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 6e28d9c..8ad2dad 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;