From 7768d1dfb448d44105071a9fb044179252efccb2 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 13 Nov 2000 03:29:14 +0000 Subject: Add an "invisible_char" argument to set the char displayed when visibility 2000-11-09 Havoc Pennington * gtk/gtkentry.c (gtk_entry_class_init): Add an "invisible_char" argument to set the char displayed when visibility == FALSE (gtk_entry_create_layout): If !entry->visible, replace all chars with the "invisible char" * gtk/testgtk.c: Test the invisible_char deal --- gtk/gtkentry.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gtk/gtkentry.h') diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index 33f26baaf..6099ac13b 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -86,7 +86,9 @@ struct _GtkEntry guint16 n_bytes; /* length in use, in bytes */ guint16 preedit_length; /* length of preedit string, in bytes */ - guint16 preedit_cursor; /* offset of cursor within preedit string, in bytes */ + guint16 preedit_cursor; /* offset of cursor within preedit string, in chars */ + + gunichar invisible_char; }; struct _GtkEntryClass @@ -126,6 +128,8 @@ GtkType gtk_entry_get_type (void) G_GNUC_CONST; GtkWidget* gtk_entry_new (void); void gtk_entry_set_visibility (GtkEntry *entry, gboolean visible); +void gtk_entry_set_invisible_char (GtkEntry *entry, + gunichar ch); void gtk_entry_set_editable (GtkEntry *entry, gboolean editable); /* text is truncated if needed */ -- cgit v1.2.1