Search
lxdream.org :: lxdream/src/gui/callbacks.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/callbacks.c
changeset 296:1aa1c5ba59fd
prev277:fcc1274776cb
author nkeynes
date Tue Jan 16 10:36:19 2007 +0000 (15 years ago)
permissions -rw-r--r--
last change Bug 24: Add basic gui for save scene function
file annotate diff log raw
1.1 --- a/src/gui/callbacks.c Fri Jan 12 10:16:02 2007 +0000
1.2 +++ b/src/gui/callbacks.c Tue Jan 16 10:36:19 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: callbacks.c,v 1.18 2007-01-12 10:16:02 nkeynes Exp $
1.6 + * $Id: callbacks.c,v 1.19 2007-01-16 10:36:19 nkeynes Exp $
1.7 *
1.8 * All GTK callbacks go here (stubs are autogenerated by Glade)
1.9 *
1.10 @@ -30,6 +30,7 @@
1.11 #include "mmio.h"
1.12 #include "dreamcast.h"
1.13 #include "loader.h"
1.14 +#include "pvr2/pvr2.h"
1.15
1.16 int selected_pc = -1;
1.17 int selected_row = -1;
1.18 @@ -66,6 +67,13 @@
1.19
1.20 }
1.21
1.22 +void
1.23 +on_save_next_scene_activate( GtkMenuItem *menuitem,
1.24 + gpointer user_data)
1.25 +{
1.26 + const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.27 + save_file_dialog( "Save next scene...", pvr2_save_next_scene, "*.dsc", "lxdream scene file (*.dsc)", dir );
1.28 +}
1.29
1.30 void
1.31 on_exit1_activate (GtkMenuItem *menuitem,
.