gtk2/gtk2-set-invisible-char-to-circle.patch

36 lines
1.5 KiB
Diff

Index: gtk+-2.11.5/gtk/gtkentry.c
===================================================================
--- gtk+-2.11.5.orig/gtk/gtkentry.c
+++ gtk+-2.11.5/gtk/gtkentry.c
@@ -537,7 +537,7 @@ gtk_entry_class_init (GtkEntryClass *cla
g_param_spec_unichar ("invisible-char",
P_("Invisible character"),
P_("The character to use when masking entry contents (in \"password mode\")"),
- '*',
+ (gunichar) 0x25CF,
GTK_PARAM_READWRITE));
g_object_class_install_property (gobject_class,
@@ -1101,7 +1101,7 @@ gtk_entry_init (GtkEntry *entry)
entry->editable = TRUE;
entry->visible = TRUE;
- entry->invisible_char = '*';
+ entry->invisible_char = (gunichar) 0x25CF;
entry->dnd_position = -1;
entry->width_chars = -1;
entry->is_cell_renderer = FALSE;
@@ -4550,9 +4550,9 @@ gtk_entry_get_visibility (GtkEntry *entr
* 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 an bullet (Unicode character 25CF; see also 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
gtk_entry_set_invisible_char (GtkEntry *entry,