Search
lxdream.org :: lxdream/src/gtkui/gtkcb.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtkcb.c
changeset 1109:700c5ab26a63
prev1072:d82e04e6d497
next1124:aacaae9812ea
author nkeynes
date Sat Sep 11 09:44:21 2010 +1000 (13 years ago)
permissions -rw-r--r--
last change GTK: Comment out non-existent setting menu-items, to reduce potential
confusion
file annotate diff log raw
1.1 --- a/src/gtkui/gtkcb.c Tue Jul 21 20:33:21 2009 +1000
1.2 +++ b/src/gtkui/gtkcb.c Sat Sep 11 09:44:21 2010 +1000
1.3 @@ -129,7 +129,7 @@
1.4
1.5 void mount_action_callback( GtkAction *action, gpointer user_data)
1.6 {
1.7 - open_file_dialog_cb( "Open...", gdrom_mount_image, NULL, NULL, CONFIG_DEFAULT_PATH );
1.8 + open_file_dialog_cb( "Open...", gtk_gui_gdrom_mount_image, NULL, NULL, CONFIG_DEFAULT_PATH );
1.9 }
1.10 void reset_action_callback( GtkAction *action, gpointer user_data)
1.11 {
1.12 @@ -146,9 +146,19 @@
1.13 dreamcast_run();
1.14 }
1.15
1.16 +gboolean gtk_gui_load_exec( const gchar *filename )
1.17 +{
1.18 + ERROR err;
1.19 + gboolean ok = file_load_exec(filename, &err);
1.20 + if( !ok ) {
1.21 + ERROR(err.msg);
1.22 + }
1.23 + return ok;
1.24 +}
1.25 +
1.26 void load_binary_action_callback( GtkAction *action, gpointer user_data)
1.27 {
1.28 - open_file_dialog_cb( "Open Binary...", file_load_magic, NULL, NULL, CONFIG_DEFAULT_PATH );
1.29 + open_file_dialog_cb( "Open Binary...", gtk_gui_load_exec, NULL, NULL, CONFIG_DEFAULT_PATH );
1.30 }
1.31
1.32 void load_state_preview_callback( GtkFileChooser *chooser, gpointer user_data )
.