Fix non-ASCII invisible chars

epel9
Matthias Clasen 19 years ago
parent 989701564a
commit 14a1f6c6d4

@ -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

@ -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 <mclasen@redhat.com> - 2.5.1-5
- Make non-ASCII invisible characters work
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.5.1-3.2.1
- bump again for double-long bug on ppc(64)

Loading…
Cancel
Save