aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/service_response_time_table.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-10-10 08:59:17 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-10-10 08:59:17 +0000
commite75b86fab1d1f5841046dc3dff1ae1fbb679d77b (patch)
tree1b9beb3105102e911dc8942631e38860938b0ec0 /gtk/service_response_time_table.c
parent8969b36861e1a0725d832eabc32feb1ca846f1ff (diff)
Add a ColorizeProcedure menu option to the ServiceResponseTime statistics dialog
svn path=/trunk/; revision=8659
Diffstat (limited to 'gtk/service_response_time_table.c')
-rw-r--r--gtk/service_response_time_table.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/gtk/service_response_time_table.c b/gtk/service_response_time_table.c
index 0da6367522..f2d6133130 100644
--- a/gtk/service_response_time_table.c
+++ b/gtk/service_response_time_table.c
@@ -3,7 +3,7 @@
* Helper routines common to all service response time statistics
* tap.
*
- * $Id: service_response_time_table.c,v 1.8 2003/10/10 08:52:19 sahlberg Exp $
+ * $Id: service_response_time_table.c,v 1.9 2003/10/10 08:59:17 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -41,6 +41,8 @@
#include "simple_dialog.h"
#include "globals.h"
#include "gtk/find_dlg.h"
+#include "color.h"
+#include "gtk/color_dlg.h"
extern GtkWidget *main_display_filter_widget;
#define GTK_MENU_FUNC(a) ((GtkItemFactoryCallback)(a))
@@ -141,6 +143,7 @@ srt_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
2: Find Frame
3: Find Next
4: Find Previous
+ 5: Colorize Procedure
filter_type:
0: Selected
1: Not Selected
@@ -224,6 +227,10 @@ srt_select_filter_cb(GtkWidget *widget _U_, gpointer callback_data, guint callba
/* find previous */
find_previous_next_frame_with_filter(str, TRUE);
break;
+ case 5:
+ /* colorize procedure */
+ color_display_with_filter(str);
+ break;
}
}
@@ -287,12 +294,20 @@ static GtkItemFactoryEntry srt_list_menu_items[] =
ITEM_FACTORY_ENTRY("/Find Frame/Find Next/Not Selected", NULL,
srt_select_filter_cb, 3*256+1, NULL, NULL),
+ /* Find Previous */
ITEM_FACTORY_ENTRY("/Find Frame/Find Previous", NULL, NULL, 0, "<Branch>", NULL),
ITEM_FACTORY_ENTRY("/Find Frame/Find Previous/Selected", NULL,
srt_select_filter_cb, 4*256+0, NULL, NULL),
ITEM_FACTORY_ENTRY("/Find Frame/Find Previous/Not Selected", NULL,
srt_select_filter_cb, 4*256+1, NULL, NULL),
+ /* Colorize Procedure */
+ ITEM_FACTORY_ENTRY("/Colorize Procedure", NULL, NULL, 0, "<Branch>", NULL),
+ ITEM_FACTORY_ENTRY("/Colorize Procedure/Selected", NULL,
+ srt_select_filter_cb, 5*256+0, NULL, NULL),
+ ITEM_FACTORY_ENTRY("/Colorize Procedure/Not Selected", NULL,
+ srt_select_filter_cb, 5*256+1, NULL, NULL),
+
};
static void