You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libglade2/libglade-2.5.1-invisible-ch...

16 lines
519 B

--- libglade-2.5.1/glade/glade-gtk.c.invisible-char 2006-03-23 09:15:52.000000000 -0500
+++ libglade-2.5.1/glade/glade-gtk.c 2006-03-23 09:16:21.000000000 -0500
@@ -421,7 +421,11 @@
entry_set_invisible_char (GladeXML *xml, GtkWidget *w,
const gchar *name, const gchar *value)
{
- gtk_entry_set_invisible_char (GTK_ENTRY (w), value [0]);
+ gunichar c;
+
+ c = g_utf8_get_char_validated (value, strlen (value));
+ if (c > 0)
+ gtk_entry_set_invisible_char (GTK_ENTRY (w), c);
}
static void