summaryrefslogtreecommitdiff
path: root/gtk/gtkentry.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2000-11-13 03:29:14 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-11-13 03:29:14 +0000
commit7768d1dfb448d44105071a9fb044179252efccb2 (patch)
tree4947177227310cd0a8d0963d17e710a9b4f03db3 /gtk/gtkentry.h
parent895c094a2c740c75e45d3ea9eb3711ab34a65e36 (diff)
downloadgdk-pixbuf-7768d1dfb448d44105071a9fb044179252efccb2.tar.gz
Add an "invisible_char" argument to set the char displayed when visibility
2000-11-09 Havoc Pennington <hp@pobox.com> * 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
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r--gtk/gtkentry.h6
1 files changed, 5 insertions, 1 deletions
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 */