aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/menu.c
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-29 14:51:52 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2005-04-29 14:51:52 +0000
commitc3fad52d9268cc5d370305ee586ede8904d8bc60 (patch)
tree1870e4883021400841c6895227fca301b063b71a /gtk/menu.c
parentffd92a2a5972ff3744607dbff03a702abbb44436 (diff)
add a new feature: list the files of a "File Set" (set of files generated by capturing "Multiple Files"/ringbuffer) and jump from one file of it to the next/previous one
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14231 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/menu.c')
-rw-r--r--gtk/menu.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/menu.c b/gtk/menu.c
index ba9a601844..0a51768700 100644
--- a/gtk/menu.c
+++ b/gtk/menu.c
@@ -46,6 +46,7 @@
#include "filter_dlg.h"
#include "dlg_utils.h"
#include "file_dlg.h"
+#include "fileset_dlg.h"
#include "find_dlg.h"
#include "goto_dlg.h"
#include "summary_dlg.h"
@@ -179,6 +180,11 @@ static GtkItemFactoryEntry menu_items[] =
ITEM_FACTORY_STOCK_ENTRY("/File/Save _As...", "<shift><control>S", file_save_as_cmd_cb,
0, GTK_STOCK_SAVE_AS),
ITEM_FACTORY_ENTRY("/File/<separator>", NULL, NULL, 0, "<Separator>", NULL),
+ ITEM_FACTORY_ENTRY("/File/File Set", NULL, NULL, 0, "<Branch>", NULL),
+ ITEM_FACTORY_ENTRY("/File/File Set/List Files", NULL, fileset_cb, 0, NULL, NULL),
+ ITEM_FACTORY_ENTRY("/File/File Set/Next File", NULL, fileset_next_cb, 0, NULL, NULL),
+ ITEM_FACTORY_ENTRY("/File/File Set/Previous File", NULL, fileset_previous_cb, 0, NULL, NULL),
+ ITEM_FACTORY_ENTRY("/File/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_ENTRY("/File/_Export", NULL, NULL, 0, "<Branch>", NULL),
ITEM_FACTORY_ENTRY("/File/Export/as \"Plain _Text\" file...", NULL, export_text_cmd_cb,
0, NULL, NULL),
@@ -1974,3 +1980,10 @@ void set_menus_for_packet_history(gboolean back_history, gboolean forward_histor
set_toolbar_for_packet_history(back_history, forward_history);
}
+
+void set_menus_for_file_set(gboolean file_set, gboolean previous_file, gboolean next_file) {
+
+ set_menu_sensitivity(main_menu_factory, "/File/File Set/List Files", file_set);
+ set_menu_sensitivity(main_menu_factory, "/File/File Set/Previous File", previous_file);
+ set_menu_sensitivity(main_menu_factory, "/File/File Set/Next File", next_file);
+}