]> Pileus Git - ~andy/gtk/commitdiff
Remove improper use of g_locale_to_utf8() to convert from latin-1, and do
authorOwen Taylor <otaylor@redhat.com>
Thu, 29 Nov 2001 01:15:52 +0000 (01:15 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 29 Nov 2001 01:15:52 +0000 (01:15 +0000)
Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
* gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove
improper use of g_locale_to_utf8() to convert from
latin-1, and do it the easy way by building the string
correctly in the first place.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkaccellabel.c

index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index f83857f45b1bfc7a180ffaa9028143449ab89ae9..2aa81d2cce791832db3de66f1a62ec3ddc74c62e 100644 (file)
@@ -1,3 +1,10 @@
+Wed Nov 28 20:05:44 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccellabel.c (gtk_accel_label_refetch): Remove 
+       improper use of g_locale_to_utf8() to convert from
+       latin-1, and do it the easy way by building the string
+       correctly in the first place.
+
 Wed Nov 28 19:34:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/x11/gdkproperty-x11.c (gdk_property_change, gdk_property_get): 
index b3721e1c4c23f22d3bf06f5bb80b1f79900eb290..2b6513baa6b100394badebfa7f7dba275cdaebd3 100644 (file)
@@ -533,7 +533,7 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
                  g_string_append (gstring, "Backslash");
                  break;
                default:
-                 g_string_append_c (gstring, toupper (key->accel_key));
+                 g_string_append_unichar (gstring, toupper (key->accel_key));
                  break;
                }
            }
@@ -558,13 +558,6 @@ gtk_accel_label_refetch (GtkAccelLabel *accel_label)
   if (!accel_label->accel_string)
     accel_label->accel_string = g_strdup ("");
 
-  utf8 = g_locale_to_utf8 (accel_label->accel_string, -1, NULL, NULL, NULL);
-  if (utf8)
-    {
-      g_free (accel_label->accel_string);
-      accel_label->accel_string = utf8;
-    }
-
   if (accel_label->queue_id)
     {
       gtk_idle_remove (accel_label->queue_id);