diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2011-02-24 13:29:10 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2011-03-21 09:37:37 +0100 |
commit | ef061c4e967d883077042bc8abe398fa3351895a (patch) | |
tree | 7fadcb93de6d711f0d5decb52157cbc8d9f6bce8 /gtk/gtkentry.h | |
parent | c8350821e90467fab7fbc6901495bf0374c92f5a (diff) | |
download | gtk+-ef061c4e967d883077042bc8abe398fa3351895a.tar.gz |
gtkentry: Add hinting to GtkEntry
gtk_entry_set_placeholder_text() makes the entry display the given text
when it is empty and unfocused. Based on previous patch by Alberto
Garcia.
https://bugzilla.gnome.org/show_bug.cgi?id=440963
Diffstat (limited to 'gtk/gtkentry.h')
-rw-r--r-- | gtk/gtkentry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkentry.h b/gtk/gtkentry.h index 3bd37d35f7..2bca501592 100644 --- a/gtk/gtkentry.h +++ b/gtk/gtkentry.h @@ -213,6 +213,10 @@ gdouble gtk_entry_get_progress_pulse_step (GtkEntry *entry); void gtk_entry_progress_pulse (GtkEntry *entry); +G_CONST_RETURN gchar* gtk_entry_get_placeholder_text (GtkEntry *entry); + +void gtk_entry_set_placeholder_text (GtkEntry *entry, + const gchar *text); /* Setting and managing icons */ void gtk_entry_set_icon_from_pixbuf (GtkEntry *entry, |