| GNOME Dictionary Library Reference Manual | ||||
|---|---|---|---|---|
GdictEntryPrivate;
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);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkEntry
+----GdictEntry
"context" GdictContext : Read / Write "database" gchararray : Read / Write "strategy" gchararray : Read / Write
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
context" property"context" GdictContext : Read / Write
The context object bound to this entry.
Since 0.1
database" property"database" gchararray : Read / Write
The database to be used for generating the completion list.
Default value: NULL
Since 1.0