## gva-play-back

gva-play-back — Recorded Games Window

## Synopsis

    void                gva_play_back_init                  (void);
    void                gva_play_back_show                  (const gchar *inpname);
    void                gva_play_back_clicked_cb            (GtkButton *button);
    void                gva_play_back_close_clicked_cb      (GtkWindow *window,
                                                             GtkButton *button);
    void                gva_play_back_delete_clicked_cb     (GtkTreeView *view,
                                                             GtkButton *button);
    void                gva_play_back_row_activated_cb      (GtkTreeView *view,
                                                             GtkTreePath *path,
                                                             GtkTreeViewColumn *column);
    void                gva_play_back_window_hide_cb        (GtkWindow *window);

## Description

These functions manipulate the Recorded Games window.

## Details

### gva_play_back_init ()

    void                gva_play_back_init                  (void);

Initializes the Recorded Games window.

This function should be called once when the application starts.

### gva_play_back_show ()

    void                gva_play_back_show                  (const gchar *inpname);

Refreshes the contents of the Recorded Games window, attempts to select the row corresponding to `inpname` (if `inpname` is not `NULL`), and finally shows the window.

`inpname` : | an input filename or `NULL`

### gva_play_back_clicked_cb ()

    void                gva_play_back_clicked_cb            (GtkButton *button);

Handler for "clicked" signals to the "Play Back" button.

Activates the GVA_ACTION_PLAY_BACK action.

`button` : | the "Play Back" button

### gva_play_back_close_clicked_cb ()

    void                gva_play_back_close_clicked_cb      (GtkWindow *window,
                                                             GtkButton *button);

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

Hides `window`.

`window` : | the "Recorded Games" window
`button` : | the "Close" button

### gva_play_back_delete_clicked_cb ()

    void                gva_play_back_delete_clicked_cb     (GtkTreeView *view,
                                                             GtkButton *button);

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

Displays a confirmation dialog, then deletes the MAME input files corresponding to the selected rows in `view`.

`view` : | the "Recorded Games" tree view
`button` : | the "Delete" button

### gva_play_back_row_activated_cb ()

    void                gva_play_back_row_activated_cb      (GtkTreeView *view,
                                                             GtkTreePath *path,
                                                             GtkTreeViewColumn *column);

Handler for "row-activated" signals to the "Recorded Games" tree view.

Activates the GVA_ACTION_PLAY_BACK action.

`view` : | the "Recorded Games" tree view
`path` : | the GtkTreePath for the activated row
`column` : | the GtkTreeViewColumn in which the activation occurred

### gva_play_back_window_hide_cb ()

    void                gva_play_back_window_hide_cb        (GtkWindow *window);

Handler for "hide" signals to the "Recorded Games" window.

Saves the contents of the "Recorded Games" tree view to the game database.

`window` : | the "Recorded Games" window