- Use Unicode character 2022 for the default invisible character

This commit is contained in:
Christopher Aillon 2006-01-19 20:46:01 +00:00
parent 3211377fe2
commit fd6ec154b4
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,33 @@
--- gtk+-2.8.10/gtk/gtkentry.c.set-invisible-char-to-bullet 2006-01-19 15:12:18.000000000 -0500
+++ gtk+-2.8.10/gtk/gtkentry.c 2006-01-19 15:36:51.000000000 -0500
@@ -542,7 +542,7 @@
g_param_spec_unichar ("invisible-char",
P_("Invisible character"),
P_("The character to use when masking entry contents (in \"password mode\")"),
- '*',
+ (gunichar) 0x2022,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -1000,7 +1000,7 @@
entry->editable = TRUE;
entry->visible = TRUE;
- entry->invisible_char = '*';
+ entry->invisible_char = (gunichar) 0x2022;
entry->dnd_position = -1;
entry->width_chars = -1;
entry->is_cell_renderer = FALSE;
@@ -4019,9 +4019,9 @@
* gtk_entry_set_visibility() has been called to set text visibility
* to %FALSE. i.e. this is the character used in "password mode" to
* show the user how many characters have been typed. The default
- * invisible char is an asterisk ('*'). If you set the invisible char
- * to 0, then the user will get no feedback at all; there will be
- * no text on the screen as they type.
+ * invisible char is a small bullet (Unicode character 2022). If you
+ * set the invisible char to 0, then the user will get no feedback at
+ * all; there will be no text on the screen as they type.
*
**/
void

View File

@ -16,7 +16,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X.
Name: gtk2
Version: %{base_version}
Release: 3
Release: 4
License: LGPL
Group: System Environment/Libraries
Source: gtk+-%{version}.tar.bz2
@ -27,6 +27,7 @@ Patch0: gtk+-2.4.1-lib64.patch
# Backported from 2.10
Patch1: gtk+-2.8.6-inputmethod.patch
Patch2: gtk+-2.8.10-abicheck.patch
Patch3: gtk+-2.8.10-set-invisible-char-to-bullet.patch
BuildPrereq: atk-devel >= %{atk_version}
BuildPrereq: pango-devel >= %{pango_version}
@ -90,6 +91,7 @@ tar xzf %{SOURCE1}
%patch0 -p1 -b .lib64
%patch1 -p1 -b .inputmethod
%patch2 -p1 -b .abicheck
%patch3 -p1 -b .set-invisible-char-to-bullet
for i in config.guess config.sub ; do
test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@ -259,6 +261,9 @@ rm -rf $RPM_BUILD_ROOT
%doc tmpdocs/examples
%changelog
* Thu Jan 19 2006 Christopher Aillon <caillon@redhat.com> 2.8.10-4
- Use Unicode character 2022 for the default invisible character
* Wed Jan 18 2006 Matthias Clasen <mclasen@redhat.com> 2.8.10-3
- Rebuild against GLib 2.9.4