Search
lxdream.org :: lxdream/src/gui/gtkcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gtkcb.c
changeset 450:207461e79f21
prev447:3e095bfcb476
next455:3080881d00d4
author nkeynes
date Wed Oct 17 11:26:45 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Split config management out to config.[ch]
Manage config filename
Check home dir + sysconfdir for conf file
Initial work on a path settings dialog
file annotate diff log raw
1.1 --- a/src/gui/gtkcb.c Tue Oct 16 12:36:29 2007 +0000
1.2 +++ b/src/gui/gtkcb.c Wed Oct 17 11:26:45 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gtkcb.c,v 1.3 2007-10-16 12:36:29 nkeynes Exp $
1.6 + * $Id: gtkcb.c,v 1.4 2007-10-17 11:26:45 nkeynes Exp $
1.7 *
1.8 * Action callbacks from the main window
1.9 *
1.10 @@ -17,6 +17,7 @@
1.11 */
1.12
1.13 #include "dream.h"
1.14 +#include "config.h"
1.15 #include "dreamcast.h"
1.16 #include "gdrom/gdrom.h"
1.17 #include "gui/gtkui.h"
1.18 @@ -113,7 +114,7 @@
1.19
1.20 void mount_action_callback( GtkAction *action, gpointer user_data)
1.21 {
1.22 - const gchar *dir = dreamcast_get_config_value(CONFIG_DEFAULT_PATH);
1.23 + const gchar *dir = lxdream_get_config_value(CONFIG_DEFAULT_PATH);
1.24 open_file_dialog( "Open...", gdrom_mount_image, NULL, NULL, dir );
1.25 }
1.26 void reset_action_callback( GtkAction *action, gpointer user_data)
1.27 @@ -133,12 +134,12 @@
1.28
1.29 void load_state_action_callback( GtkAction *action, gpointer user_data)
1.30 {
1.31 - const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.32 + const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.33 open_file_dialog( "Load state...", dreamcast_load_state, "*.dst", "lxDream Save State (*.dst)", dir );
1.34 }
1.35 void save_state_action_callback( GtkAction *action, gpointer user_data)
1.36 {
1.37 - const gchar *dir = dreamcast_get_config_value(CONFIG_SAVE_PATH);
1.38 + const gchar *dir = lxdream_get_config_value(CONFIG_SAVE_PATH);
1.39 save_file_dialog( "Save state...", dreamcast_save_state, "*.dst", "lxDream Save State (*.dst)", dir );
1.40 }
1.41 void about_action_callback( GtkAction *action, gpointer user_data)
1.42 @@ -167,6 +168,7 @@
1.43
1.44 void path_settings_callback( GtkAction *action, gpointer user_data)
1.45 {
1.46 + path_dialog_run();
1.47 }
1.48
1.49 void audio_settings_callback( GtkAction *action, gpointer user_data)
1.50 @@ -175,7 +177,7 @@
1.51
1.52 void controller_settings_callback( GtkAction *action, gpointer user_data)
1.53 {
1.54 - controller_dialog_run( NULL );
1.55 + controller_dialog_run( );
1.56 }
1.57
1.58 void network_settings_callback( GtkAction *action, gpointer user_data)
.