Skip to content

Commit

Permalink
RTL marker in recent file list. See bug #509076.
Browse files Browse the repository at this point in the history
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.


svn path=/trunk/; revision=2818
  • Loading branch information
Djihed Afifi authored and Nickolay V. Shmyrev committed Jan 13, 2008
1 parent d559d4f commit 778e499
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
7 changes: 5 additions & 2 deletions shell/ev-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 778e499

Please sign in to comment.