set_menu_visible needs to be protected to avoid defined but unused
warning turned error. svn path=/trunk/; revision=43372
This commit is contained in:
parent
085d21ec1c
commit
1b1d6ff096
|
@ -148,7 +148,9 @@ static void menus_init(void);
|
|||
static void merge_lua_menu_items(GList *node);
|
||||
static void ws_menubar_build_external_menus(void);
|
||||
static void set_menu_sensitivity (GtkUIManager *ui_manager, const gchar *, gint);
|
||||
#if !defined(WANT_PACKET_EDITOR) || !defined(HAVE_LIBPCAP)
|
||||
static void set_menu_visible(GtkUIManager *ui_manager, const gchar *path, gint val);
|
||||
#endif
|
||||
static void name_resolution_cb(GtkWidget *w, gpointer d, gint action);
|
||||
static void colorize_cb(GtkWidget *w, gpointer d);
|
||||
|
||||
|
@ -3854,6 +3856,7 @@ set_menu_sensitivity(GtkUIManager *ui_manager, const gchar *path, gint val)
|
|||
gtk_action_set_sensitive (action, val); /* TRUE to make the action sensitive */
|
||||
}
|
||||
|
||||
#if !defined(WANT_PACKET_EDITOR) || !defined(HAVE_LIBPCAP)
|
||||
static void
|
||||
set_menu_visible(GtkUIManager *ui_manager, const gchar *path, gint val)
|
||||
{
|
||||
|
@ -3867,6 +3870,7 @@ set_menu_visible(GtkUIManager *ui_manager, const gchar *path, gint val)
|
|||
}
|
||||
gtk_action_set_visible (action, val); /* TRUE to make the action visible */
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
set_menu_object_data_meat(GtkUIManager *ui_manager, const gchar *path, const gchar *key, gpointer data)
|
||||
|
|
Loading…
Reference in New Issue