diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-19 07:24:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-19 07:24:39 +0000 |
commit | e8e9f1bdfe5b7bc189e104387d3b075a81ee81d2 (patch) | |
tree | 957dddbd7b2e0e8bd9c3349b089ada57a31bba13 /gtk/http_stat.c | |
parent | f051c17afbe3ffc628ac72f6c3fd7c42a20e255d (diff) |
Provide a mechanism by which a tap can arrange to have its menu enabled
or disabled based on a currently-selected packet (or lack of same) or a
currently-selected protocol tree item (or lack of same). Not currently
used, but necessary if we ever make the TCP graph stuff a tap. API is
tentative and subject to change.
Also, enable and disable taps based on whether we have any packets to
process.
svn path=/trunk/; revision=8498
Diffstat (limited to 'gtk/http_stat.c')
-rw-r--r-- | gtk/http_stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/http_stat.c b/gtk/http_stat.c index f03f8c9b88..c578c27e00 100644 --- a/gtk/http_stat.c +++ b/gtk/http_stat.c @@ -1,7 +1,7 @@ /* http_stat.c * http_stat 2003 Jean-Michel FAYARD * - * $Id: http_stat.c,v 1.3 2003/09/17 19:39:33 guy Exp $ + * $Id: http_stat.c,v 1.4 2003/09/19 07:24:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -576,5 +576,6 @@ register_tap_listener_gtkhttpstat(void) void register_tap_menu_gtkhttpstat(void) { - register_tap_menu_item("Statistics/Watch protocol/HTTP", gtk_httpstat_cb); + register_tap_menu_item("Statistics/Watch protocol/HTTP", + gtk_httpstat_cb, NULL, NULL); } |