From 0cf232e28696a8aa8e0021ecc905f669b4e5b62e Mon Sep 17 00:00:00 2001 From: evilynux Date: Sun, 21 Jan 2007 06:16:54 +0000 Subject: [PATCH] Add comment to explain why we can't add a check aside the existing savestates. --- desmume/src/gtk-glade/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desmume/src/gtk-glade/main.c b/desmume/src/gtk-glade/main.c index b5420010a..b3208332f 100755 --- a/desmume/src/gtk-glade/main.c +++ b/desmume/src/gtk-glade/main.c @@ -156,8 +156,9 @@ void update_savestate_menu(char * cb_name, u8 num) sprintf( cb, "%s%d", cb_name, num); w = glade_xml_get_widget(xml, cb); set_menuitem_label( w, savestates[num-1].date ); - /* FIXME: Setting the menu item active makes DeSmuME go crazy!? */ -/* gtk_check_menu_item_set_active((GtkCheckMenuItem*)w, TRUE); */ + /* FIXME: Uncommenting the following makes DeSmuME go crazy. + It triggers the callback (update_savestate) on activate. */ +/* gtk_check_menu_item_set_active((GtkCheckMenuItem*)w, TRUE); */ } void update_savestates_menu() @@ -183,6 +184,7 @@ void update_savestates_menu() void update_savestate(u8 num) { + printf("Update savestate!\n"); desmume_pause(); savestate_slot(num); update_savestate_menu("savestate", num);