summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-11-28 16:00:26 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-11-28 16:00:26 +0000
commit5eb2aac9474e1e8d035af1cbb4bc6756539af335 (patch)
tree5f7f9adb99bfad09d73e91f4628d4531788f8b17
parentbe2dc85cc1946996f5927f624df2821322d047bb (diff)
downloadgdk-pixbuf-5eb2aac9474e1e8d035af1cbb4bc6756539af335.tar.gz
Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571,
2005-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent -20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
-rw-r--r--ChangeLog3
-rw-r--r--ChangeLog.pre-2-103
-rw-r--r--gtk/gtkscale.c4
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a705767d..e59ec56a6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2005-11-28 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
+ -20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
+
* gtk/gtkaction.c (gtk_action_sync_button_stock_id)
(connect_proxy): Buttons use the label property for stock ids. (#322565,
Milosz Derezynski)
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 1a705767d..e59ec56a6 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,5 +1,8 @@
2005-11-28 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtkscale.c (_gtk_scale_format_value): Insert an LRM, to prevent
+ -20 to come out as 20- in RTL locales. (#322571, Tze'ela Hebron)
+
* gtk/gtkaction.c (gtk_action_sync_button_stock_id)
(connect_proxy): Buttons use the label property for stock ids. (#322565,
Milosz Derezynski)
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 85f745460..349793807 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -646,8 +646,8 @@ _gtk_scale_format_value (GtkScale *scale,
if (fmt)
return fmt;
else
- return g_strdup_printf ("%0.*f", scale->digits,
- value);
+ /* insert a LRM, to prevent -20 to come out as 20- in RTL locales */
+ return g_strdup_printf ("\342\200\216%0.*f", scale->digits, value);
}
static void