From fd6ec154b45e7bb3090063614383a5a6f9c0cd87 Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Thu, 19 Jan 2006 20:46:01 +0000 Subject: [PATCH] - Use Unicode character 2022 for the default invisible character --- ...-2.8.10-set-invisible-char-to-bullet.patch | 33 +++++++++++++++++++ gtk2.spec | 7 +++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 gtk+-2.8.10-set-invisible-char-to-bullet.patch diff --git a/gtk+-2.8.10-set-invisible-char-to-bullet.patch b/gtk+-2.8.10-set-invisible-char-to-bullet.patch new file mode 100644 index 0000000..289a479 --- /dev/null +++ b/gtk+-2.8.10-set-invisible-char-to-bullet.patch @@ -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 diff --git a/gtk2.spec b/gtk2.spec index cb55a6c..08fc6c4 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -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 2.8.10-4 +- Use Unicode character 2022 for the default invisible character + * Wed Jan 18 2006 Matthias Clasen 2.8.10-3 - Rebuild against GLib 2.9.4