tExport the toplevel window GtkWidget - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8c78b4df3d34b7eeec05fef03c6a99c20704fdd2
(DIR) parent 736010a305bacb4abc286d7f5d75085ad83637b2
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Mon, 25 Feb 2002 19:03:12 +0000
Export the toplevel window GtkWidget
Diffstat:
M src/gtk_client.c | 4 +++-
M src/gtk_client.h | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/gtk_client.c b/src/gtk_client.c
t@@ -74,6 +74,8 @@ struct ClientDataStruct {
guint JetAccel;
};
+GtkWidget *MainWindow;
+
struct StartGameStruct {
GtkWidget *dialog, *name, *hostname, *port, *antique, *status, *metaserv;
#ifdef NETWORKING
t@@ -2070,7 +2072,7 @@ char GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail)
ClientData.Play = g_new(Player, 1);
FirstClient = AddPlayer(0, ClientData.Play, FirstClient);
- window = ClientData.window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ window = MainWindow = ClientData.window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
/* Title of main window in GTK+ client */
gtk_window_set_title(GTK_WINDOW(window), _("dopewars"));
(DIR) diff --git a/src/gtk_client.h b/src/gtk_client.h
t@@ -27,7 +27,9 @@
#include <config.h>
#endif
-#include <glib.h>
+#include "gtkport.h"
+
+extern GtkWidget *MainWindow;
#ifdef CYGWIN
char GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance);