Search
lxdream.org :: lxdream/src/gui/gdrom_menu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gui/gdrom_menu.c
changeset 469:3e2a0fde5cd8
prev464:8e099fad42a6
next470:e09a16196693
author nkeynes
date Sun Oct 28 07:36:11 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Make the sure initial GD (if any) makes its way to the gui
file annotate diff log raw
1.1 --- a/src/gui/gdrom_menu.c Sat Oct 27 05:44:54 2007 +0000
1.2 +++ b/src/gui/gdrom_menu.c Sun Oct 28 07:36:11 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom_menu.c,v 1.1 2007-10-27 05:44:54 nkeynes Exp $
1.6 + * $Id: gdrom_menu.c,v 1.2 2007-10-28 07:36:11 nkeynes Exp $
1.7 *
1.8 * Creates and manages the GD-Rom attachment menu.
1.9 *
1.10 @@ -105,12 +105,16 @@
1.11 }
1.12 }
1.13
1.14 -void gdrom_menu_open_file( const char *filename )
1.15 +gboolean gdrom_menu_open_file( const char *filename )
1.16 {
1.17 + gboolean result = FALSE;
1.18 if( filename != NULL ) {
1.19 - gdrom_mount_image(filename);
1.20 + result = gdrom_mount_image(filename);
1.21 }
1.22 - gdrom_menu_update_all();
1.23 + if( result ) {
1.24 + gdrom_menu_update_all();
1.25 + }
1.26 + return result;
1.27 }
1.28
1.29 void gdrom_menu_open_image_callback( GtkWidget *widget, gpointer user_data )
.