From 043c26f8f082cf74d7d18152775658ff6f611acc Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sat, 3 Oct 2009 22:56:38 -0700 Subject: [PATCH] some more work on the movehistory window added a scrollbar and fixed display of first move --- gtk-interface.xml | 66 +++++++++++++++++++++++++++++----------------------- xhistory.c | 3 ++ 2 files changed, 40 insertions(+), 29 deletions(-) diff --git a/gtk-interface.xml b/gtk-interface.xml index 8805dc3..ab24899 100644 --- a/gtk-interface.xml +++ b/gtk-interface.xml @@ -978,43 +978,51 @@ vertical 2 - + True True - MoveHistoryStore - False - False - 0 + automatic + automatic - - Move + + True + True + MoveHistoryStore + False + False + 0 - - - 0 - + + Move + + + + 0 + + + - - - - - White - - - 1 - + + White + + + + 1 + + + - - - - - Black - - - 2 - + + Black + + + + 2 + + + diff --git a/xhistory.c b/xhistory.c index a08dcc8..ee865fd 100644 --- a/xhistory.c +++ b/xhistory.c @@ -131,6 +131,9 @@ void HistorySet(char movelist[][2*MOVE_LEN],int first,int last,int current) char movewhite[2*MOVE_LEN],moveblack[2*MOVE_LEN],move[2*MOVE_LEN]; GtkTreeIter iter; + /* first clear everything, do we need this? */ + gtk_list_store_clear(LIST_MoveHistory); + /* copy move list into history window */ /* go through all moves */ -- 1.7.0.4