evince r2818 - in trunk: . shell



Author: nshmyrev
Date: Sun Jan 13 13:31:47 2008
New Revision: 2818
URL: http://svn.gnome.org/viewvc/evince?rev=2818&view=rev

Log:
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.



Modified:
   trunk/ChangeLog
   trunk/shell/ev-window.c

Modified: trunk/shell/ev-window.c
==============================================================================
--- trunk/shell/ev-window.c	(original)
+++ trunk/shell/ev-window.c	Sun Jan 13 13:31:47 2008
@@ -1827,12 +1827,15 @@
 	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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]