From 14a1f6c6d4d138f7b1f6afa4babaae659785c447 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mar 23 2006 14:23:22 +0000 Subject: Fix non-ASCII invisible chars --- diff --git a/libglade-2.5.1-invisible-char.patch b/libglade-2.5.1-invisible-char.patch new file mode 100644 index 0000000..f30ff50 --- /dev/null +++ b/libglade-2.5.1-invisible-char.patch @@ -0,0 +1,15 @@ +--- 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 diff --git a/libglade2.spec b/libglade2.spec index e3b57e3..4e83cb5 100644 --- a/libglade2.spec +++ b/libglade2.spec @@ -5,7 +5,7 @@ Summary: The libglade library for loading user interfaces. Name: libglade2 Version: 2.5.1 -Release: 3.2.1 +Release: 5 License: LGPL Group: System Environment/Libraries Source: libglade-%{version}.tar.bz2 @@ -21,6 +21,8 @@ BuildRequires: libtool # http://bugzilla.gnome.org/show_bug.cgi?id=121025 Patch1: libglade-2.0.1-nowarning.patch +# fixed in upstream cvs +Patch2: libglade-2.5.1-invisible-char.patch %description Libglade is a small library that allows a program to load its user @@ -50,6 +52,7 @@ that you can use to develop libglade applications. %setup -q -n libglade-%{version} %patch1 -p1 -b .nowarning +%patch2 -p1 -b .invisible-char %build %configure --disable-gtk-doc @@ -85,6 +88,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/gtk-doc %changelog +* Thu Mar 23 2006 Matthias Clasen - 2.5.1-5 +- Make non-ASCII invisible characters work + * Fri Feb 10 2006 Jesse Keating - 2.5.1-3.2.1 - bump again for double-long bug on ppc(64)