summaryrefslogtreecommitdiff
path: root/ui/gtk/main_menubar_private.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-17 00:00:25 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-17 00:00:25 +0000
commit480e2c351b63252fc8648cd26199900b1d5a6f88 (patch)
treef846768ad598f57b3c14b7c132a3c9f87a78f6ce /ui/gtk/main_menubar_private.h
parent8bd9df6671b4ab8ba2be4c2bd8fdc88233c31636 (diff)
downloadwireshark-480e2c351b63252fc8648cd26199900b1d5a6f88.tar.gz
Move some code to manipulate the toolbar and capture interface dialog
out of main_menubar.c into routines in main.c. Move some routines that are only used by main.c into main_menubar_private.h. svn path=/trunk/; revision=43298
Diffstat (limited to 'ui/gtk/main_menubar_private.h')
-rw-r--r--ui/gtk/main_menubar_private.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ui/gtk/main_menubar_private.h b/ui/gtk/main_menubar_private.h
index 231406947c..30f47b44f4 100644
--- a/ui/gtk/main_menubar_private.h
+++ b/ui/gtk/main_menubar_private.h
@@ -26,11 +26,34 @@
/*** PRIVATE INTERFACE BETWEEN main.c AND main_menubar.c DON'T USE OR TOUCH :-)*/
+/** The recent file read has finished, update the menu corresponding. */
+extern void menu_recent_read_finished(void);
+
/* Enable or disable menu items based on whether you have a capture file
you've finished reading and, if you have one, whether it's been saved
and whether it could be saved except by copying the raw packet data. */
void set_menus_for_capture_file(capture_file *);
+/** The packet history has changed, we need to update the menu.
+ *
+ * @param back_history some back history entries available
+ * @param forward_history some forward history entries available
+ */
+extern void set_menus_for_packet_history(gboolean back_history, gboolean forward_history);
+
+/* Enable or disable menu items based on whether there's a capture in
+ progress. */
+void set_menus_for_capture_in_progress(gboolean);
+
+/* Disable menu items while we're waiting for the capture child to
+ finish. We disallow quitting until it finishes, and also disallow
+ stopping or restarting the capture. */
+void set_menus_for_capture_stopping(void);
+
+/* Enable or disable menu items based on whether you have some captured
+ packets. */
+void set_menus_for_captured_packets(gboolean);
+
#ifdef HAVE_LIBPCAP
/** The "Auto Scroll Packet List in Live Capture" option changed. */
extern void menu_auto_scroll_live_changed(gboolean auto_scroll_in);