summaryrefslogtreecommitdiff
path: root/ui/commandline.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-10-19 20:53:40 +0200
committerRoland Knall <rknall@gmail.com>2016-10-23 23:25:49 +0000
commitaf7fc8b7e4979e77d2d072789e98d58a0b175908 (patch)
treedca66e206f77f555e48220578f0ae65959821763 /ui/commandline.c
parent3156980aa559186a10e3b8566d41e4a50477d967 (diff)
downloadwireshark-af7fc8b7e4979e77d2d072789e98d58a0b175908.tar.gz
Qt: add fullscreen feature.
The feature activates/deactivates fullscreen mode of Qt UI. A new menu item has been added as well as a shortcut (F11 or Ctrl+Cmd+F) according to browsers common shortcut. Change-Id: I01906b494d0a13ce70d27c00ebbe03e6ec87cbd7 Reviewed-on: https://code.wireshark.org/review/18332 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/commandline.c')
-rw-r--r--ui/commandline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/commandline.c b/ui/commandline.c
index c75b914ee8..f9c2547d19 100644
--- a/ui/commandline.c
+++ b/ui/commandline.c
@@ -176,6 +176,7 @@ commandline_print_usage(gboolean for_help_option) {
#ifndef _WIN32
fprintf(output, " --display=DISPLAY X display to use\n");
#endif
+ fprintf(output, " --fullscreen start Wireshark in full screen\n");
#ifdef _WIN32
destroy_console();
@@ -396,6 +397,7 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset)
global_commandline_info.disable_protocol_slist = NULL;
global_commandline_info.enable_heur_slist = NULL;
global_commandline_info.disable_heur_slist = NULL;
+ global_commandline_info.full_screen = FALSE;
while ((opt = getopt_long(argc, argv, optstring, long_options, NULL)) != -1) {
switch (opt) {
@@ -607,6 +609,9 @@ void commandline_other_options(int argc, char *argv[], gboolean opt_reset)
case LONGOPT_DISABLE_HEURISTIC: /* disable heuristic dissection of protocol */
global_commandline_info.disable_heur_slist = g_slist_append(global_commandline_info.disable_heur_slist, optarg);
break;
+ case LONGOPT_FULL_SCREEN:
+ global_commandline_info.full_screen = TRUE;
+ break;
default:
case '?': /* Bad flag - print usage message */
arg_error = TRUE;