X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=callback.c;h=23f27e8d5aca77b18fefd4c77c0d86845f3bfcd1;hb=6c88e71150be8fef644db5c492da7047a4fdd002;hp=4bc9210c70792a47e313365476e226dd78359977;hpb=ca25d6a70dab684169fd863dca1bcf1b99ef8088;p=xboard.git diff --git a/callback.c b/callback.c index 4bc9210..23f27e8 100644 --- a/callback.c +++ b/callback.c @@ -349,7 +349,6 @@ void FlipViewProc(object, user_data) GtkObject *object; gpointer user_data; { - printf("DEBUG: in flip view\n"); flipView = !flipView; DrawPosition(True, NULL); return; @@ -441,16 +440,22 @@ void LoadGameProc(object, user_data) //see loadgamepopup f = fopen(filename, "rb"); - if (f == NULL) { - DisplayError(_("Failed to open file"), errno); - } else { - /* TODO add indec */ - (void) LoadGamePopUp(f, 0, filename); - } + if (f == NULL) + { + DisplayError(_("Failed to open file"), errno); + } + else + { + /* TODO add indec */ + (void) LoadGamePopUp(f, 0, filename); + } g_free (filename); - } + }; + gtk_widget_destroy (dialog); ModeHighlight(); + + return; } @@ -662,3 +667,19 @@ void UserMoveProc(window, event, data) return; } +void GetMoveListProc(object, user_data) + GtkObject *object; + gpointer user_data; +{ + appData.getMoveList = !appData.getMoveList; + + if (appData.getMoveList) + { + GetMoveListEvent(); + } + + // gets set automatically? if we set it with set_active we end up in an endless loop switching between 0 and 1 + // gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (object),(gboolean) appData.getMoveList ); + + return; +}