Top | ![]() |
![]() |
![]() |
![]() |
AnjutaEntryAnjutaEntry — GtkEntry subclass that displays help text with a button to clear the entry's contents. |
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 () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkEntry ╰── AnjutaEntry ╰── AnjutaDropEntry
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.
gchar *
anjuta_entry_dup_text (AnjutaEntry *self
);
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.
gboolean
anjuta_entry_is_showing_help_text (AnjutaEntry *self
);
Whether the entry is showing its help text. In practice, if this
method returns TRUE
, it means that the user has not entered anything.
“help-text”
property“help-text” gchar *
Text to show the user what to enter into the entry.
Flags: Read / Write
Default value: ""