| Top |
AnjutaEntryAnjutaEntry — GtkEntry subclass that displays help text with a button to clear the entry's contents. |
Functions
| GtkWidget * | anjuta_entry_new () |
| const gchar * | anjuta_entry_get_text () |
| gchar * | anjuta_entry_dup_text () |
| void | anjuta_entry_set_text () |
| gboolean | anjuta_entry_is_showing_help_text () |
Object Hierarchy
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkEntry ╰── AnjutaEntry ╰── AnjutaDropEntry
Description
AnjutaEntry is a version of a GtkEntry that displays some text, in a lighter color, that describes what is to be entered into it. There is also a button on the left to clear the entry's content quickly. AnjutaEntry is similar to the serach boxes used in Evolution and Glade, but is more generic can can be used in almost any situation.
Functions
anjuta_entry_dup_text ()
gchar *
anjuta_entry_dup_text (AnjutaEntry *self);
anjuta_entry_set_text ()
void anjuta_entry_set_text (AnjutaEntry *self,const gchar *text);
Sets the text on the entry, showing the help text if the text is empty.
anjuta_entry_is_showing_help_text ()
gboolean
anjuta_entry_is_showing_help_text (AnjutaEntry *self);
Returns
Whether the entry is showing its help text. In practice, if this
method returns TRUE, it means that the user has not entered anything.
Property Details
The “help-text” property
“help-text” gchar *
Text to show the user what to enter into the entry.
Flags: Read / Write
Default value: ""
