From beb43142767c06aa3afe72c75716369c2b72912d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 25 Jun 2010 06:42:34 +0000 Subject: Introduce "Show Resolved" as an option in custom columns. This will determine if we show the value or the string representing the value. This setting is not stored in the preferences file yet, and the option is not available in the columns preferences window. svn path=/trunk/; revision=33317 --- epan/column.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'epan/column.c') diff --git a/epan/column.c b/epan/column.c index e3ffceade2..b1b0504500 100644 --- a/epan/column.c +++ b/epan/column.c @@ -683,6 +683,34 @@ set_column_visible(const gint col, gboolean visible) cfmt->visible = visible; } +gboolean +get_column_resolved(const gint col) +{ + GList *clp = g_list_nth(prefs.col_list, col); + fmt_data *cfmt; + + if (!clp) /* Invalid column requested */ + return TRUE; + + cfmt = (fmt_data *) clp->data; + + return(cfmt->resolved); +} + +void +set_column_resolved(const gint col, gboolean resolved) +{ + GList *clp = g_list_nth(prefs.col_list, col); + fmt_data *cfmt; + + if (!clp) /* Invalid column requested */ + return; + + cfmt = (fmt_data *) clp->data; + + cfmt->resolved = resolved; +} + const gchar * get_column_custom_field(const gint col) { -- cgit v1.2.1