diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-04-15 17:35:42 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-04-17 03:44:47 +0000 |
commit | 1d030928ef88d630299e8e3531d9935ff1dfd342 (patch) | |
tree | 1bf6347a407ad216237cb275bbf728934d8f9f48 /ui/preference_utils.c | |
parent | c8cf127375a1f785fbbcd4d63070a51c306a2c58 (diff) |
Remove some GTK+-only code.
Change-Id: Ic2498c7acd6a1a522be45094148402ee34a6b4d1
Reviewed-on: https://code.wireshark.org/review/26958
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/preference_utils.c')
-rw-r--r-- | ui/preference_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/preference_utils.c b/ui/preference_utils.c index 4914b9192b..01584f0eb8 100644 --- a/ui/preference_utils.c +++ b/ui/preference_utils.c @@ -27,6 +27,9 @@ #include "ui/preference_utils.h" #include "ui/simple_dialog.h" +#ifdef HAVE_LIBPCAP +gboolean auto_scroll_live; +#endif /* Fill in capture options with values from the preferences */ void @@ -37,7 +40,7 @@ prefs_to_capture_opts(void) /* the same applies to other preferences settings as well. */ global_capture_opts.default_options.promisc_mode = prefs.capture_prom_mode; global_capture_opts.use_pcapng = prefs.capture_pcap_ng; - global_capture_opts.show_info = prefs.capture_show_info; /* GTK+ only */ + global_capture_opts.show_info = prefs.capture_show_info; /* GTK+ only? */ global_capture_opts.real_time_mode = prefs.capture_real_time; auto_scroll_live = prefs.capture_auto_scroll; #endif /* HAVE_LIBPCAP */ |