gva-preferences

gva-preferences — Preferences Window

Functions

Description

These functions manipulate the Preferences window.

Functions

gva_preferences_init ()

void
gva_preferences_init (void);

Initializes the Preferences window.

This function should be called once when the application starts.


gva_preferences_get_auto_save ()

gboolean
gva_preferences_get_auto_save (void);

Returns the user's preference for whether to restore the emulated machine's previous state when starting a game.

Returns

TRUE to restore state, FALSE to cold boot


gva_preferences_set_auto_save ()

void
gva_preferences_set_auto_save (gboolean auto_save);

Accepts the user's preference for whether to restore the emulated machine's previous state when starting a game.

The preference is stored in GSettings key auto-save.

Parameters

auto_save

the user's preference

 

gva_preferences_get_full_screen ()

gboolean
gva_preferences_get_full_screen (void);

Returns the user's preference for whether to start games in full screen mode.

Returns

TRUE to start in full screen mode, FALSE to start in a window


gva_preferences_set_full_screen ()

void
gva_preferences_set_full_screen (gboolean full_screen);

Accepts the user's preference for whether to start games in full screen mode.

The preference is stored in GSettings key full-screen.

Parameters

full_screen

the user's preference

 

gva_preferences_get_show_clones ()

gboolean
gva_preferences_get_show_clones (void);

Returns the user's preference for whether to show cloned games in the main window.

Returns

TRUE to show cloned games, FALSE to only show original games


gva_preferences_set_show_clones ()

void
gva_preferences_set_show_clones (gboolean show_clones);

Accepts the user's preference for whether to show cloned games in the main window.

The preference is stored in GSettings key show-clones.

Parameters

show_clones

the user's preference

 

gva_preferences_close_clicked_cb ()

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

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

Hides window .

Parameters

window

the "Preferences" window

 

button

the "Close" button