![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
AnjutaEntryAnjutaEntry — GtkEntry subclass that displays help text with a button to clear the entry's contents. |
#include <libanjuta/anjuta-entry.h> struct AnjutaEntryClass; GtkWidget * anjuta_entry_new (void
); const gchar * anjuta_entry_get_text (AnjutaEntry *self
); gchar * anjuta_entry_dup_text (AnjutaEntry *self
); void anjuta_entry_set_text (AnjutaEntry *self
,const gchar *text
); gboolean anjuta_entry_is_showing_help_text (AnjutaEntry *self
); AnjutaEntryPriv;
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.
const gchar * anjuta_entry_get_text (AnjutaEntry *self
);
|
An AnjutaEntry |
Returns : |
The contents of the entry. If the entry is empty, the help text will be displayed and an empty string will be returned. |
gchar * anjuta_entry_dup_text (AnjutaEntry *self
);
|
An AnjutaEntry |
Returns : |
A copy of the contents of the entry. If the entry is empty, the returned string will be empty. The returned string must be freed when no longer needed. [transfer full] |
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.
|
An AnjutaEntry |
|
The new text |
gboolean anjuta_entry_is_showing_help_text (AnjutaEntry *self
);
|
An AnjutaEntry |
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. |