Move GTK-related stuff out of globals.h and put it in gtk/gtkglobals.h
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 20 Oct 1999 22:36:05 +0000 (22:36 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 20 Oct 1999 22:36:05 +0000 (22:36 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@896 f5534014-38df-0310-8fa8-9805f1628bb7

capture.c
globals.h
gtk/file_dlg.c
gtk/gtkglobals.h [new file with mode: 0644]

index 1bad4275cece8541e801cd767ea80b0ae28c49ec..ed7ac6f5a91c02cb87143d0b0957f891df985a12 100644 (file)
--- a/capture.c
+++ b/capture.c
@@ -1,7 +1,7 @@
 /* capture.c
  * Routines for packet capture windows
  *
- * $Id: capture.c,v 1.79 1999/10/02 19:57:23 guy Exp $
+ * $Id: capture.c,v 1.80 1999/10/20 22:35:57 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -80,6 +80,7 @@
 #endif
 
 #include "gtk/main.h"
+#include "gtk/gtkglobals.h"
 #include "packet.h"
 #include "file.h"
 #include "gtk/menu.h"
index 873d4fc1f24fdb9cb40cb9a46e02f0dc5213c699..5385407651a534952e3597c7b699ed5273589a3d 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -1,7 +1,7 @@
 /* globals.h
  * Global defines, etc.
  *
- * $Id: globals.h,v 1.10 1999/10/02 19:24:19 guy Exp $
+ * $Id: globals.h,v 1.11 1999/10/20 22:35:57 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
 #include "packet.h"
 #endif
 
-#ifndef __GTK_H__
-#include <gtk/gtk.h>
-#endif
-
 #ifndef __PRINT_H__
 #include "print.h"
 #endif
@@ -85,9 +81,9 @@
 extern FILE        *data_out_file;
 extern packet_info  pi;
 extern capture_file cf;
-extern GtkWidget   *file_sel, *packet_list, *tree_view, *byte_view, *prog_bar,
+/*extern GtkWidget   *file_sel, *packet_list, *tree_view, *byte_view, *prog_bar,
             *info_bar;
-extern GdkFont     *m_r_font, *m_b_font;
+extern GdkFont     *m_r_font, *m_b_font;*/
 extern guint        main_ctx, file_ctx;
 extern gchar        comp_info_str[256];
 extern gchar       *ethereal_path;
@@ -99,7 +95,7 @@ extern int          g_resolving_actif;
 
 extern ts_type timestamp_type;
 
-extern GtkStyle *item_style;
+/*extern GtkStyle *item_style;*/
 
 #define PF_DIR ".ethereal"
 
index 09e4fdd3d33c380e4425acf78480d0a29340d8a7..663733d295fc14918867baf67b79af331605519a 100644 (file)
@@ -1,7 +1,7 @@
 /* file_dlg.c
  * Dialog boxes for handling files
  *
- * $Id: file_dlg.c,v 1.10 1999/10/12 05:01:07 guy Exp $
+ * $Id: file_dlg.c,v 1.11 1999/10/20 22:36:05 gram Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -40,6 +40,9 @@
 #ifndef __GLOBALS_H__
 #include "globals.h"
 #endif
+#ifndef __GTKGLOBALS_H__
+#include "gtkglobals.h"
+#endif
 
 #ifndef __KEYS_H__
 #include "keys.h"
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h
new file mode 100644 (file)
index 0000000..60f3406
--- /dev/null
@@ -0,0 +1,39 @@
+/* gtkglobals.h
+ * GTK-related Global defines, etc.
+ *
+ * $Id: gtkglobals.h,v 1.1 1999/10/20 22:36:05 gram Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@zing.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * 
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ */
+
+#ifndef __GTKGLOBALS_H__
+#define __GTKGLOBALS_H__
+
+#ifndef __GTK_H__
+#include <gtk/gtk.h>
+#endif
+
+extern GtkWidget   *file_sel, *packet_list, *tree_view, *byte_view, *prog_bar,
+            *info_bar;
+extern GdkFont     *m_r_font, *m_b_font;
+
+extern GtkStyle *item_style;
+
+#endif