From: Arun Persaud Date: Sun, 4 Oct 2009 05:56:38 +0000 (-0700) Subject: some more work on the movehistory window X-Git-Tag: gtk-20091122~26 X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=043c26f8f082cf74d7d18152775658ff6f611acc some more work on the movehistory window added a scrollbar and fixed display of first move --- 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 */