eog r4424 - in trunk: . src



Author: lucasr
Date: Mon Mar  3 20:40:12 2008
New Revision: 4424
URL: http://svn.gnome.org/viewvc/eog?rev=4424&view=rev

Log:
2008-03-03  Lucas Rocha  <lucasr gnome org>

	* src/eog-window.c (eog_window_update_recent_files_menu): introduce an
	RLM character when default direction is RTL in order to have recent
	files shown with the correct direction. Fixes bug #509079 (Djihed Afifi)


Modified:
   trunk/ChangeLog
   trunk/src/eog-window.c

Modified: trunk/src/eog-window.c
==============================================================================
--- trunk/src/eog-window.c	(original)
+++ trunk/src/eog-window.c	Mon Mar  3 20:40:12 2008
@@ -3622,6 +3622,7 @@
 		gchar *label_filename;
 		GtkAction *action;
 		GtkRecentInfo *info = li->data;
+		gboolean is_rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
 
 		if (!gtk_recent_info_has_group (info, EOG_RECENT_FILES_GROUP))
 			continue;
@@ -3631,7 +3632,8 @@
 		action_name = g_strdup_printf ("recent-info-%d", count_recent);
 		display_name = g_strsplit (gtk_recent_info_get_display_name (info), "_", -1);
 		label_filename = g_strjoinv ("__", display_name);
-		label = g_strdup_printf ("_%d. %s", count_recent, label_filename);
+		label = g_strdup_printf ("%s_%d. %s", 
+				(is_rtl ? "\xE2\x80\x8F" : ""), count_recent, label_filename);
 		g_free (label_filename);
 		g_strfreev (display_name);
 



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