aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGraeme Lunt <graeme.lunt@smhs.co.uk>2006-05-11 16:42:38 +0000
committerGraeme Lunt <graeme.lunt@smhs.co.uk>2006-05-11 16:42:38 +0000
commit6c381119a94f8ba487b6fd67736a17ce1cd01612 (patch)
tree1de83b1eeea4c8f44d0d01a36a7748a9ea6cb545 /gtk
parent7186c6481cf3e2ac9642355287a198706c9a7752 (diff)
Removal of useless "Field Information" introduced in r18125
svn path=/trunk/; revision=18133
Diffstat (limited to 'gtk')
-rw-r--r--gtk/main.c24
-rw-r--r--gtk/main.h12
-rw-r--r--gtk/menu.c6
3 files changed, 0 insertions, 42 deletions
diff --git a/gtk/main.c b/gtk/main.c
index c6335cb7e2..d5503a73b9 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -89,7 +89,6 @@
#include "cmdarg_err.h"
#include "version_info.h"
#include "merge.h"
-#include <epan/oid_resolv.h>
#ifdef HAVE_LIBPCAP
#include "capture-pcap-util.h"
@@ -383,29 +382,6 @@ selected_ptree_ref_cb(GtkWidget *widget _U_, gpointer data _U_)
}
}
-void
-selected_ptree_field_url_cb(GtkWidget *widget _U_, gpointer data _U_)
-{
- gchar *selected_info_url;
-
- /* only OIDs for now */
- if(cfile.finfo_selected->hfinfo->type == FT_OID) {
- if(get_oid_url(cfile.finfo_selected, &selected_info_url)) {
- browser_open_url(selected_info_url);
- g_free(selected_info_url);
- }
- }
-}
-
-gboolean selected_ptree_has_field_url()
-{
- /* only OIDs for now */
- if(cfile.finfo_selected->hfinfo->type == FT_OID)
- return get_oid_url(cfile.finfo_selected, NULL);
-
- return FALSE;
-}
-
static gchar *
get_text_from_packet_list(gpointer data)
{
diff --git a/gtk/main.h b/gtk/main.h
index 7db0c64241..3a822ce6d0 100644
--- a/gtk/main.h
+++ b/gtk/main.h
@@ -105,18 +105,6 @@ extern void selected_ptree_info_cb(GtkWidget *widget, gpointer data);
*/
extern void selected_ptree_ref_cb(GtkWidget *widget, gpointer data);
-/** User requested "Field Information" by ptree context menu.
- *
- * @param widget parent widget (unused)
- * @param data unused
- */
-extern void selected_ptree_field_url_cb(GtkWidget *widget, gpointer data);
-
-/** Determine if "Field Information" should be enabled in ptree context menu.
- *
- */
-extern gboolean selected_ptree_has_field_url();
-
/** "Apply as Filter" / "Prepare a Filter" action type. */
typedef enum {
MATCH_SELECTED_REPLACE, /**< "Selected" */
diff --git a/gtk/menu.c b/gtk/menu.c
index 1add529e5b..000a40ec00 100644
--- a/gtk/menu.c
+++ b/gtk/menu.c
@@ -523,8 +523,6 @@ static GtkItemFactoryEntry tree_view_menu_items[] =
0, ETHEREAL_STOCK_WIKI),
ITEM_FACTORY_STOCK_ENTRY("/Filter Field Reference", NULL, selected_ptree_ref_cb,
0, ETHEREAL_STOCK_INTERNET),
- ITEM_FACTORY_STOCK_ENTRY("/Field Information", NULL, selected_ptree_field_url_cb,
- 0, ETHEREAL_STOCK_INTERNET),
ITEM_FACTORY_ENTRY("/Protocol Preferences...", NULL, properties_cb,
0, NULL, NULL),
ITEM_FACTORY_ENTRY("/<separator>", NULL, NULL, 0, "<Separator>", NULL),
@@ -2144,8 +2142,6 @@ set_menus_for_selected_tree_row(capture_file *cf)
TRUE);
set_menu_sensitivity(tree_view_menu_factory, "/Filter Field Reference",
TRUE);
- set_menu_sensitivity(tree_view_menu_factory, "/Field Information",
- selected_ptree_has_field_url());
} else {
set_menu_sensitivity(main_menu_factory,
"/Go/Go to Corresponding Packet", FALSE);
@@ -2163,8 +2159,6 @@ set_menus_for_selected_tree_row(capture_file *cf)
FALSE);
set_menu_sensitivity(tree_view_menu_factory, "/Filter Field Reference",
FALSE);
- set_menu_sensitivity(tree_view_menu_factory, "/Field Information",
- FALSE);
}
walk_menu_tree_for_selected_tree_row(tap_menu_tree_root, cf->finfo_selected);