Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2004:
[Freeciv-Dev] (PR#10810) Load Game - preselect
Home

[Freeciv-Dev] (PR#10810) Load Game - preselect

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: chrisk@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#10810) Load Game - preselect
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Sun, 31 Oct 2004 17:33:37 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=10810 >

> [chrisk - Sun Oct 31 18:20:19 2004]:
> 
> CVS 31 OCT 2004 S2 GTK2
> 
> When you start civclient and load a savegame, the newest savegame is
> preselected in the list. Also, after loading it, the first player of the
> playerlist is preselected.
> 
> When you leave the game and go loading another, these preselections do not
> happen. Esp. when you start the game from the playerlist nothing happens -
> because no player is choosen.

Here's the patch, to be commited ASAP.

Index: client/gui-gtk-2.0/pages.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/pages.c,v
retrieving revision 1.8
diff -u -r1.8 pages.c
--- client/gui-gtk-2.0/pages.c  27 Oct 2004 21:05:38 -0000      1.8
+++ client/gui-gtk-2.0/pages.c  1 Nov 2004 01:33:06 -0000
@@ -1616,9 +1616,16 @@
   switch (new_page) {
   case PAGE_MAIN:
   case PAGE_START:
+    break;
   case PAGE_NATION:
+    gtk_tree_view_focus(gtk_tree_selection_get_tree_view(nation_selection));
+    break;
   case PAGE_LOAD:
+    gtk_tree_view_focus(gtk_tree_selection_get_tree_view(load_selection));
+    break;
   case PAGE_SCENARIO:
+    gtk_tree_view_focus(gtk_tree_selection_get_tree_view(scenario_selection));
+    break;
   case PAGE_GAME:
     break;
   case PAGE_NETWORK:

[Prev in Thread] Current Thread [Next in Thread]