implement a way to add menu items to the "Analyze" menu
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Sep 2005 18:45:52 +0000 (18:45 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 13 Sep 2005 18:45:52 +0000 (18:45 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15788 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/menu.c
stat_menu.h

index 20a41485690ca41a953144e4d56873d45e0c40b9..59b2bec08328012034b7157c784935a405e7603d 100644 (file)
@@ -701,6 +701,7 @@ register_stat_menu_item(
     case(REGISTER_STAT_GROUP_RESPONSE_TIME): toolspath = "/Statistics/Service _Response Time/"; break;
     case(REGISTER_STAT_GROUP_TELEPHONY): toolspath = "/Statistics/"; break;
     case(REGISTER_STAT_GROUP_NONE): toolspath = "/Statistics/"; break;
+    case(REGISTER_ANALYZE_GROUP_NONE): toolspath = "/Analyze/"; break;
     default:
         g_assert(0);
         toolspath = NULL;
@@ -824,6 +825,8 @@ static guint merge_tap_menus_layered(GList *node, gint group) {
                 entry->item_type = "<StockItem>";
                 entry->extra_data = ETHEREAL_STOCK_TELEPHONY;
                 break;
+            case(REGISTER_ANALYZE_GROUP_NONE):
+                break;
             default:
                 g_assert_not_reached();
             }
@@ -892,6 +895,10 @@ void merge_all_tap_menus(GList *node) {
     if (merge_tap_menus_layered(node, REGISTER_STAT_GROUP_NONE)) {
         /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
     }
+    if (merge_tap_menus_layered(node, REGISTER_ANALYZE_GROUP_NONE)) {
+               entry->path = "/Analyze/";
+        /*gtk_item_factory_create_item(main_menu_factory, entry, NULL, 2);*/
+    }
 }
 
 
index 88982c470f8cafd9b198da69837fb27ec2e7b50f..9104ffc92c1ea9587f3962b5092613a3bf9ed32b 100644 (file)
@@ -48,8 +48,9 @@ typedef enum {
     REGISTER_STAT_GROUP_CONVERSATION_LIST,
     REGISTER_STAT_GROUP_ENDPOINT_LIST,
     REGISTER_STAT_GROUP_RESPONSE_TIME,
-    REGISTER_STAT_GROUP_TELEPHONY
+    REGISTER_STAT_GROUP_TELEPHONY,
     /* XXX - split into telephony and VoIP? */
+       REGISTER_ANALYZE_GROUP_NONE
 } REGISTER_STAT_GROUP_E;
 
 #ifdef __cplusplus