Complete.Org: Mailing Lists: Archives: freeciv-dev: December 1999:
[Freeciv-Dev] patch/fix: obey center_when_popup_city for gtk/mui (PR#207
Home

[Freeciv-Dev] patch/fix: obey center_when_popup_city for gtk/mui (PR#207

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] patch/fix: obey center_when_popup_city for gtk/mui (PR#207)
From: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Date: Sat, 25 Dec 1999 04:19:39 -0800 (PST)

This patch make the gui-gtk and gui-mui clients obey the client
option center_when_popup_city when using popup from city report 
(as well as from messages window; gui-xaw client is already ok). 
I assume this is a fix -- ie, that the existing behaviour is not 
intentional?

(I seem to recall someone reported something about this, but
couldn't find it.)

-- David
diff -u -r --exclude-from exclude freeciv-cvs/client/gui-gtk/cityrep.c 
freeciv-mod/client/gui-gtk/cityrep.c
--- freeciv-cvs/client/gui-gtk/cityrep.c        Thu Dec 23 16:48:58 1999
+++ freeciv-mod/client/gui-gtk/cityrep.c        Sat Dec 25 13:41:46 1999
@@ -1282,7 +1282,9 @@
     return;
 
   pcity = city_from_glist (current);
+  if (center_when_popup_city) {
     center_tile_mapcanvas(pcity->x, pcity->y);
+  }
 
   /* We have to copy the list as the popup_city_dialog destroys the data */
   for(; current; current = g_list_next(current))
diff -u -r --exclude-from exclude freeciv-cvs/client/gui-mui/cityrep.c 
freeciv-mod/client/gui-mui/cityrep.c
--- freeciv-cvs/client/gui-mui/cityrep.c        Thu Nov 18 05:49:54 1999
+++ freeciv-mod/client/gui-mui/cityrep.c        Sat Dec 25 13:42:38 1999
@@ -457,7 +457,9 @@
 
   if (pcity)
   {
-    center_tile_mapcanvas(pcity->x, pcity->y);
+    if (center_when_popup_city) {
+      center_tile_mapcanvas(pcity->x, pcity->y);
+    }
     popup_city_dialog(pcity, 0);
   }
   return NULL;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] patch/fix: obey center_when_popup_city for gtk/mui (PR#207), David Pfitzner <=