Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9979) conndlg aifill
Home

[Freeciv-Dev] (PR#9979) conndlg aifill

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9979) conndlg aifill
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 12 Sep 2004 13:09:05 -0700
Reply-to: rt@xxxxxxxxxxx

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

Here's a patch.

This is ugly.  IMO we should change the default aifill in the server to
5, and change the gtk2 conndlg to respect this (currently the default is
completely ignored).

jason

? settler_recursion_crash
Index: client/gui-gtk-2.0/connectdlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/connectdlg.c,v
retrieving revision 1.41
diff -u -r1.41 connectdlg.c
--- client/gui-gtk-2.0/connectdlg.c     9 Sep 2004 21:22:33 -0000       1.41
+++ client/gui-gtk-2.0/connectdlg.c     12 Sep 2004 20:07:58 -0000
@@ -856,6 +856,8 @@
   aifill = gtk_spin_button_new(adj, 1, 0);
   gtk_spin_button_set_update_policy(GTK_SPIN_BUTTON(aifill), 
                                     GTK_UPDATE_IF_VALID);
+  /* Default to aifill 5. */
+  gtk_spin_button_set_value(GTK_SPIN_BUTTON(aifill), 5);
   gtk_box_pack_start(GTK_BOX(hbox), aifill, FALSE, FALSE, 0);
 
   hbox = gtk_hbox_new(FALSE, 12);

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