Search
lxdream.org :: lxdream/src/gtkui/gtkcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkcb.c
changeset 1040:9e3e41eab2db
prev1036:af7b0c5905dd
next1041:5fcc39857c5c
author nkeynes
date Thu Jun 25 21:21:18 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Add quick state bits to the menus
file annotate diff log raw
1.1 --- a/src/gtkui/gtkcb.c Wed Jun 24 06:06:40 2009 +0000
1.2 +++ b/src/gtkui/gtkcb.c Thu Jun 25 21:21:18 2009 +0000
1.3 @@ -213,6 +213,24 @@
1.4 {
1.5 save_file_dialog_cb( "Save state...", dreamcast_save_state, "*.dst", _("lxDream Save State (*.dst)"), CONFIG_SAVE_PATH );
1.6 }
1.7 +
1.8 +void quick_state_action_callback( GtkRadioAction *action, GtkRadioAction *current, gpointer user_data)
1.9 +{
1.10 + gint val = gtk_radio_action_get_current_value(action);
1.11 + dreamcast_set_quick_state(val);
1.12 +}
1.13 +
1.14 +void quick_load_action_callback( GtkAction *action, gpointer user_data)
1.15 +{
1.16 + dreamcast_quick_load();
1.17 +}
1.18 +
1.19 +void quick_save_action_callback( GtkAction *action, gpointer user_data)
1.20 +{
1.21 + dreamcast_quick_save();
1.22 +}
1.23 +
1.24 +
1.25 void about_action_callback( GtkAction *action, gpointer user_data)
1.26 {
1.27
.