aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-08-30 20:38:17 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-08-30 20:38:17 +0000
commit27529d334eaddd4dc4a1d4e10e88f7d39d774019 (patch)
treed801b5944b31a629bb4430b704de78e61dbedc6d /gtk
parent05bedd5d0faa6f939b172ac1c242a3e61268c59c (diff)
have only one Export/File menu entry for the Win32 dialog, instead of 5 entries leading to exactly the same dialog (with a single setting - the file type - set different)
we might want the Unix/GTK version work the same way, as this is how other programs I know work as well ... and making the documentation easier by desribing only one way how it's working svn path=/trunk/; revision=19090
Diffstat (limited to 'gtk')
-rw-r--r--gtk/menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/menu.c b/gtk/menu.c
index 547a56fe5c..aeccd01cec 100644
--- a/gtk/menu.c
+++ b/gtk/menu.c
@@ -391,6 +391,10 @@ static GtkItemFactoryEntry menu_items[] =
ITEM_FACTORY_STOCK_ENTRY("/File/File Set/Previous File", NULL, fileset_previous_cb, 0, WIRESHARK_STOCK_FILE_SET_PREVIOUS),
ITEM_FACTORY_ENTRY("/File/<separator>", NULL, NULL, 0, "<Separator>", NULL),
ITEM_FACTORY_ENTRY("/File/_Export", NULL, NULL, 0, "<Branch>", NULL),
+#if GTK_MAJOR_VERSION >= 2 && _WIN32
+ ITEM_FACTORY_ENTRY("/File/Export/File...", NULL, export_text_cmd_cb,
+ 0, NULL, NULL),
+#else
ITEM_FACTORY_ENTRY("/File/Export/as \"Plain _Text\" file...", NULL, export_text_cmd_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/File/Export/as \"_PostScript\" file...", NULL, export_ps_cmd_cb,
@@ -403,6 +407,7 @@ static GtkItemFactoryEntry menu_items[] =
ITEM_FACTORY_ENTRY("/File/Export/as XML - \"P_DML\" (packet details) file...", NULL, export_pdml_cmd_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/File/Export/<separator>", NULL, NULL, 0, "<Separator>", NULL),
+#endif
ITEM_FACTORY_ENTRY("/File/Export/Selected Packet _Bytes...", "<control>H", savehex_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/File/<separator>", NULL, NULL, 0, "<Separator>", NULL),