From 57716e13659a8c9c26124e249a86fce9577d609f Mon Sep 17 00:00:00 2001 From: Roland Knall Date: Mon, 9 Mar 2015 08:11:13 +0100 Subject: Qt: Implement "Apply as Column" for packet context Implement the same functionality for "Apply as Column" as it exists in the GTK version of Wireshark. Especially for the context menu in the packet view panel. Change-Id: Id25b7797616ff3b3acf7aa920395516c8a4e9bf9 Reviewed-on: https://code.wireshark.org/review/7604 Reviewed-by: Roland Knall Petri-Dish: Alexis La Goutte Petri-Dish: Pascal Quantin Tested-by: Petri Dish Buildbot Reviewed-by: Michal Labedzki Tested-by: Michal Labedzki --- ui/preference_utils.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui/preference_utils.h') diff --git a/ui/preference_utils.h b/ui/preference_utils.h index e4117d682e..882555d70a 100644 --- a/ui/preference_utils.h +++ b/ui/preference_utils.h @@ -86,8 +86,10 @@ extern void prefs_main_write(void); * @param title column title * @param custom_field column custom field * @param custom_occurrence custom occurrence + * + * @return The index of the inserted column */ -void column_prefs_add_custom(gint fmt, const gchar *title, +gint column_prefs_add_custom(gint fmt, const gchar *title, const gchar *custom_field, gint custom_occurrence); -- cgit v1.2.1