This widget is a wrapper around the GtkEntry widget, but it provides
a history mechanism for all the input entered into the widget. The
way this works is that a special identifier is provided when
creating the GnomeEntry widget, and this identifier
is used to load and save the history of the text.
Here is an example of how to use the widget
Example 1. Sample usage of the GnomeEntry widget
GtkWidget *gnomeentry, *gtkentry;
char *text;
...
/* create a gnome entry */
gnomeentry = gnome_entry_new("some_history_id");
/* get the GtkEntry widget */
gtkentry = gnome_entry_gtk_entry (GNOME_ENTRY (gnomeentry));
/* set the text to "BLAH" */
gtk_entry_set_text(GTK_ENTRY(gtkentry), "BLAH");
...
/*somewhere else we wish to retrieve the contents*/
text = gtk_entry_get_text(GTK_ENTRY(gtkentry));
Set or clear the history id of the GnomeEntry widget. If
history_id is NULL, the widget's history id is cleared. Otherwise,
the given id replaces the previous widget history id.
gentry :
Pointer to GnomeEntry object.
history_id :
If not NULL, the text id under which history data is stored
Adds a history item of the given text to the head of
the history list inside gentry. If save is TRUE, the history
item will be saved in the config file (assuming that gentry's
history id is not NULL).
gentry :
Pointer to GnomeEntry object.
save :
If TRUE, history entry will be saved to config file
Adds a history item of the given text to the tail
of the history list inside gentry. If save is TRUE, the
history item will be saved in the config file (assuming that
gentry's history id is not NULL).
gentry :
Pointer to GnomeEntry object.
save :
If TRUE, history entry will be saved to config file