[gtk+/a11y] Revert 'Insert an LRM, to prevent -20 to come out as 20- in RTL'



commit 104895aeac6272c558f3905f6eb29265b39b4e72
Author: Benjamin Otte <otte redhat com>
Date:   Sat Jun 25 19:49:37 2011 +0200

    Revert 'Insert an LRM, to prevent -20 to come out as 20- in RTL'
    
    Correct text direction for printing of doubles should be (and is) done
    by printf() and friend and not enforced by GtkScale.
    
    This reverts commit 5eb2aac9474e1e8d035af1cbb4bc6756539af335
    
    https://bugzilla.gnome.org/show_bug.cgi?id=322571

 gtk/gtkscale.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 6969741..042722e 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -1334,8 +1334,7 @@ _gtk_scale_format_value (GtkScale *scale,
   if (fmt)
     return fmt;
   else
-    /* insert a LRM, to prevent -20 to come out as 20- in RTL locales */
-    return g_strdup_printf ("\342\200\216%0.*f", priv->digits, value);
+    return g_strdup_printf ("%0.*f", priv->digits, value);
 }
 
 static void



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