Search
lxdream.org :: lxdream/src/gtkui/gtk_gd.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtk_gd.c
changeset 1109:700c5ab26a63
prev1065:bc1cc0c54917
author nkeynes
date Thu Feb 23 15:24:47 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Check for existence of glDrawBuffer (assuming that glReadBuffer will
follow). Note only need to guard the common code in gl_fbo.c
file annotate diff log raw
1.1 --- a/src/gtkui/gtk_gd.c Sun Jul 05 13:52:50 2009 +1000
1.2 +++ b/src/gtkui/gtk_gd.c Thu Feb 23 15:24:47 2012 +1000
1.3 @@ -27,17 +27,31 @@
1.4
1.5 static gboolean gdrom_menu_adjusting = FALSE;
1.6
1.7 +gboolean gtk_gui_gdrom_mount_image( const char *filename )
1.8 +{
1.9 + ERROR err;
1.10 + gboolean ok = gdrom_mount_image( filename, &err );
1.11 + if( !ok ) {
1.12 + ERROR( err.msg );
1.13 + }
1.14 + return ok;
1.15 +}
1.16 +
1.17 static void gdrom_menu_open_image_callback( GtkWidget *widget, gpointer user_data )
1.18 {
1.19 if( !gdrom_menu_adjusting ) {
1.20 - open_file_dialog_cb( _("Open..."), gdrom_mount_image, NULL, NULL, CONFIG_DEFAULT_PATH );
1.21 + open_file_dialog_cb( _("Open..."), gtk_gui_gdrom_mount_image, NULL, NULL, CONFIG_DEFAULT_PATH );
1.22 }
1.23 }
1.24
1.25 void gdrom_menu_item_callback( GtkWidget *widget, gpointer user_data )
1.26 {
1.27 if( !gdrom_menu_adjusting ) {
1.28 - gdrom_list_set_selection( GPOINTER_TO_INT(user_data) );
1.29 + ERROR err;
1.30 + gboolean ok = gdrom_list_set_selection( GPOINTER_TO_INT(user_data), &err );
1.31 + if( !ok ) {
1.32 + ERROR( err.msg );
1.33 + }
1.34 }
1.35 }
1.36
.