gva-search

gva-search — Search Window

Synopsis




void                gva_search_init                     (void);
gchar*              gva_search_get_last_search          (void);
void                gva_search_set_last_search          (const gchar *text);
void                gva_search_find_clicked_cb          (GtkEntry *entry,
                                                         GtkButton *button);

Description

These functions manipulate the Search window.

Details

gva_search_init ()

void                gva_search_init                     (void);

Initializes the Search window.

This function should be called once when the application starts.


gva_search_get_last_search ()

gchar*              gva_search_get_last_search          (void);

Returns the criteria of the most recent search in either the current or the previous session of GNOME Video Arcade.

Returns :

the criteria of the most recent search

gva_search_set_last_search ()

void                gva_search_set_last_search          (const gchar *text);

Writes text to GConf key /apps/gnome-video-arcade/search.

This is used to remember the search text from the previous session of GNOME Video Arcade so that the same text can be preset in the Search window at startup.

text :

the search text

gva_search_find_clicked_cb ()

void                gva_search_find_clicked_cb          (GtkEntry *entry,
                                                         GtkButton *button);

Handler for "clicked" signals to the "Find" button.

Save the contents of the search entry and switches the main window to the "Search Results" view.

entry :

the search entry

button :

the "Find" button