From a2b2dd4b284e43a98dacf742fc0801d3bdc03028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Irene=20R=C3=BCngeler?= Date: Mon, 9 Dec 2013 10:07:33 +0000 Subject: Add a function and an enum to register an uat preference for QT only. svn path=/trunk/; revision=53880 --- epan/prefs-int.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'epan/prefs-int.h') diff --git a/epan/prefs-int.h b/epan/prefs-int.h index 52fc65fa6e..ae2772e600 100644 --- a/epan/prefs-int.h +++ b/epan/prefs-int.h @@ -108,6 +108,12 @@ typedef enum { PREF_DIRNAME } pref_type_t; +typedef enum { + GUI_ALL, + GUI_GTK, + GUI_QT +} gui_type_t; + /** Struct to hold preference data */ struct preference { const char *name; /**< name of preference */ @@ -115,6 +121,7 @@ struct preference { const char *description; /**< human-readable description of preference */ int ordinal; /**< ordinal number of this preference */ pref_type_t type; /**< type of that preference */ + gui_type_t gui; /**< type of the GUI (QT, GTK or both) the preference is registered for */ union { /* The Qt preference code assumes that these will all be pointers (and unique) */ guint *uint; gboolean *boolp; -- cgit v1.2.3