![]() |
![]() |
![]() |
GNOME Dictionary Library Reference Manual | ![]() |
---|---|---|---|---|
#include <gdict-entry.h> GdictEntry; GtkWidget* gdict_entry_new (void); GtkWidget* gdict_entry_new_with_context (GdictContext *context); void gdict_entry_set_context (GdictEntry *entry, GdictContext *context); GdictContext* gdict_entry_get_context (GdictEntry *entry);
GtkWidget* gdict_entry_new (void);
Creates a new GdictEntry widget. This widget is a simple entry with automatic completion bound to a GdictContext. When the user begins typing a word, the GtkEntryCompletion is filled with the matching words retrieved by the context.
You must set a context for this widget by using gdict_entry_set_context()
.
Returns : | the newly created GdictEntry widget. |
Since 1.0
GtkWidget* gdict_entry_new_with_context (GdictContext *context);
Creates a new GdictEntry widget. This widget is a simple entry with automatic completion bound to a GdictContext. When the user begins typing a word, the GtkEntryCompletion is filled with the matching words retrieved by the context.
You might change the context used by the widget by using the
gdict_entry_set_context()
function.
context : |
a GdictContext |
Returns : | the newly created GdictEntry widget. |
Since 1.0
void gdict_entry_set_context (GdictEntry *entry, GdictContext *context);
Sets context
as the GdictContext used by the entry.
This function increases the reference count of context
.
entry : |
a GdictEntry |
context : |
a GdictContext |
Since 1.0
GdictContext* gdict_entry_get_context (GdictEntry *entry);
Retrieves the GdictContext used by entry
.
entry : |
a GdictEntry |
Returns : | the context used by the entry |
Since 1.0