aboutsummaryrefslogtreecommitdiffstats
path: root/main_window.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-06 23:16:05 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2005-02-06 23:16:05 +0000
commit2f7df36de3f8c3b53e3e26474b1302ec7d8ab551 (patch)
tree152c311e669c82905d58ada025b6f8d7fcee59ab /main_window.h
parentfbbe2dde7c75485ccb85ce48343b4ee576ad1e78 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13328 f5534014-38df-0310-8fa8-9805f1628bb7
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__ */