aboutsummaryrefslogtreecommitdiffstats
path: root/main_window.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-02-06 23:16:05 +0000
committerGuy Harris <guy@alum.mit.edu>2005-02-06 23:16:05 +0000
commit1041ccdbe5156a8da17d1f473c996d08fe75aded (patch)
tree152c311e669c82905d58ada025b6f8d7fcee59ab /main_window.h
parent9a04fd314d15e56dad4bb16f9d3472e27f47b66d (diff)
Don't have "set_menus_for_captured_packets()" call
"main_set_for_capture_file()"; it should only deal with menus, not anything else - and it gets called while the menus are being set up, which is before the main window has been completely created, so "main_widgets_show_or_hide()", which is called by "main_set_for_capture_file()", gets errors trying to show or hide widgets the pointers to which are null. svn path=/trunk/; revision=13328
Diffstat (limited to 'main_window.h')
-rw-r--r--main_window.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/main_window.h b/main_window.h
new file mode 100644
index 0000000000..a5e4a54d79
--- /dev/null
+++ b/main_window.h
@@ -0,0 +1,41 @@
+/* main_window.h
+ * Definitions for main window routines with toolkit-independent APIs but
+ * toolkit-dependent implementations.
+ *
+ * $Id$
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * 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 __MAIN_WINDOW_H__
+#define __MAIN_WINDOW_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/** Tell the main window that we have a capture file (or not) */
+extern void
+main_set_for_capture_file(gboolean have_capture_file_in);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __MAIN_WINDOW_H__ */