diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-11 18:32:47 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-11-11 18:32:47 +0000 |
commit | 0b3ffdd688cb7976066e742843fb83ef26ad22bc (patch) | |
tree | b53c4dd952608dda42925912411bff4f3b7c8ffd /ui/gtk/dlg_utils.c | |
parent | acb53e7d4caf8a9747824606abad294ec5061091 (diff) |
Allow TCP graphs to be launched from the conversation table window.
svn path=/trunk/; revision=46001
Diffstat (limited to 'ui/gtk/dlg_utils.c')
-rw-r--r-- | ui/gtk/dlg_utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/gtk/dlg_utils.c b/ui/gtk/dlg_utils.c index 5e074b3aaf..c1c32f2bd3 100644 --- a/ui/gtk/dlg_utils.c +++ b/ui/gtk/dlg_utils.c @@ -138,6 +138,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...) const gchar *map = NULL; #endif /* HAVE_GEOIP */ const gchar *follow_stream = NULL; + const gchar *graph_a_b = NULL; + const gchar *graph_b_a = NULL; va_start(stock_id_list, stock_id_first); @@ -208,6 +210,10 @@ dlg_button_row_new(const gchar *stock_id_first, ...) delete = stock_id; } else if (strcmp(stock_id, GTK_STOCK_COPY) == 0) { copy = stock_id; + } else if (strcmp(stock_id, WIRESHARK_STOCK_GRAPH_A_B) == 0) { + graph_a_b = stock_id; + } else if (strcmp(stock_id, WIRESHARK_STOCK_GRAPH_B_A) == 0) { + graph_b_a = stock_id; } else { /* we don't know that button! */ g_assert_not_reached(); @@ -431,6 +437,8 @@ dlg_button_row_new(const gchar *stock_id_first, ...) if (clear != NULL) dlg_button_new(hbox, button_hbox, clear); if (filter_stream!= NULL) dlg_button_new(hbox, button_hbox, filter_stream); if (follow_stream != NULL) dlg_button_new(hbox, button_hbox, follow_stream); + if (graph_a_b != NULL) dlg_button_new(hbox, button_hbox, graph_a_b); + if (graph_b_a != NULL) dlg_button_new(hbox, button_hbox, graph_b_a); if (close != NULL) dlg_button_new(hbox, button_hbox, close); if (cancel != NULL) dlg_button_new(hbox, button_hbox, cancel); |