Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | moko_hint_entry_new () |
void | moko_hint_entry_set_text () |
gboolean | moko_hint_entry_is_empty () |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkEntry ╰── MokoHintEntry
MokoHintEntry implements AtkImplementorIface, GtkBuildable, GtkEditable and GtkCellEditable.
MokoHintEntry is a simple GtkEntry subclass that displays "hint" text if the user has not entered a value. This is useful when there is not enough space in the user interface to add a label next to the entry. However, it should only be used where the meaning and context of the user entered value is obvious without a label.
GtkWidget *
moko_hint_entry_new (const char *hint
);
Create a new MokoHintEntry widget with the specified hint.
void moko_hint_entry_set_text (MokoHintEntry *entry
,const gchar *text
);
Clear the text in the entry and if the widget is not focused, display the hint text.
gboolean
moko_hint_entry_is_empty (MokoHintEntry *entry
);
Check if the entry has a user entered value.