Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#3403) Government in Intelligence isn't updating
Home

[Freeciv-Dev] (PR#3403) Government in Intelligence isn't updating

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: ue80@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] (PR#3403) Government in Intelligence isn't updating
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Jul 2004 07:57:58 -0700
Reply-to: rt@xxxxxxxxxxx

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

> [jdorje - Fri Jul 16 14:57:17 2004]:

> This patch does that.


Index: client/packhand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/packhand.c,v
retrieving revision 1.388
diff -u -r1.388 packhand.c
--- client/packhand.c   13 Jul 2004 18:16:53 -0000      1.388
+++ client/packhand.c   16 Jul 2004 14:53:33 -0000
@@ -1629,6 +1629,10 @@
   if (pplayer == game.player_ptr && can_client_change_view()) {
     update_info_label();
   }
+
+  /* Just about any changes above require an update to the intelligence
+   * dialog. */
+  update_intel_dlg(pplayer);
 }
 
 /**************************************************************************
Index: client/gui-gtk/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk/inteldlg.c,v
retrieving revision 1.22
diff -u -r1.22 inteldlg.c
--- client/gui-gtk/inteldlg.c   4 Apr 2003 15:47:46 -0000       1.22
+++ client/gui-gtk/inteldlg.c   16 Jul 2004 14:53:33 -0000
@@ -200,3 +200,12 @@
   gtk_widget_destroy(intel_dialog_shell);
   intel_dialog_shell=NULL;
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-gtk-2.0/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/inteldlg.c,v
retrieving revision 1.13
diff -u -r1.13 inteldlg.c
--- client/gui-gtk-2.0/inteldlg.c       17 May 2004 05:34:53 -0000      1.13
+++ client/gui-gtk-2.0/inteldlg.c       16 Jul 2004 14:53:33 -0000
@@ -298,3 +298,11 @@
   gtk_widget_show_all(GTK_DIALOG(intel_dialog_shell)->vbox);
 }
 
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-mui/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-mui/inteldlg.c,v
retrieving revision 1.11
diff -u -r1.11 inteldlg.c
--- client/gui-mui/inteldlg.c   29 Mar 2003 09:57:37 -0000      1.11
+++ client/gui-mui/inteldlg.c   16 Jul 2004 14:53:33 -0000
@@ -169,3 +169,12 @@
     DoMethod(app, OM_ADDMEMBER, intel_wnd);
   }
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-sdl/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-sdl/inteldlg.c,v
retrieving revision 1.11
diff -u -r1.11 inteldlg.c
--- client/gui-sdl/inteldlg.c   2 Oct 2003 21:37:44 -0000       1.11
+++ client/gui-sdl/inteldlg.c   16 Jul 2004 14:53:33 -0000
@@ -296,3 +296,12 @@
     FREE(pIntel_Dlg);
   }
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-stub/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-stub/inteldlg.c,v
retrieving revision 1.3
diff -u -r1.3 inteldlg.c
--- client/gui-stub/inteldlg.c  30 Nov 2002 19:27:37 -0000      1.3
+++ client/gui-stub/inteldlg.c  16 Jul 2004 14:53:33 -0000
@@ -24,3 +24,12 @@
 {
   /* PORTME */
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-win32/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-win32/inteldlg.c,v
retrieving revision 1.9
diff -u -r1.9 inteldlg.c
--- client/gui-win32/inteldlg.c 29 Mar 2003 09:57:37 -0000      1.9
+++ client/gui-win32/inteldlg.c 16 Jul 2004 14:53:33 -0000
@@ -165,3 +165,12 @@
     ShowWindow(intel_dialog,SW_SHOWNORMAL);
   }
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/gui-xaw/inteldlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/inteldlg.c,v
retrieving revision 1.20
diff -u -r1.20 inteldlg.c
--- client/gui-xaw/inteldlg.c   29 Mar 2003 09:57:37 -0000      1.20
+++ client/gui-xaw/inteldlg.c   16 Jul 2004 14:53:33 -0000
@@ -206,3 +206,12 @@
   XtDestroyWidget(intel_dialog_shell);
   intel_dialog_shell=0;
 }
+
+/****************************************************************************
+  Update the intelligence dialog for the given player.  This is called by
+  the core client code when that player's information changes.
+****************************************************************************/
+void update_intel_dialog(struct player *p)
+{
+  /* PORTME */
+}
Index: client/include/inteldlg_g.h
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/include/inteldlg_g.h,v
retrieving revision 1.1
diff -u -r1.1 inteldlg_g.h
--- client/include/inteldlg_g.h 23 Feb 2003 14:11:15 -0000      1.1
+++ client/include/inteldlg_g.h 16 Jul 2004 14:53:33 -0000
@@ -16,5 +16,6 @@
 struct player;
 
 void popup_intel_dialog(struct player *p);
+void update_intel_dialog(struct player *p);
 
 #endif                         /* FC__INTELDLG_G_H */

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