summaryrefslogtreecommitdiffstats
path: root/client/application.cpp
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-12-13 15:37:37 +0100
committerHans de Goede <hdegoede@redhat.com>2010-12-16 14:54:46 +0100
commite47fb5d74fb02f87c66a22105c08d6caa0571c1a (patch)
tree026db7ca35045145464d4dcb4e70e9ba5259174d /client/application.cpp
parent7bbc2ba090788d844573e044041480ff6e3cba7b (diff)
downloadspice-e47fb5d74fb02f87c66a22105c08d6caa0571c1a.tar.gz
spice-e47fb5d74fb02f87c66a22105c08d6caa0571c1a.tar.xz
spice-e47fb5d74fb02f87c66a22105c08d6caa0571c1a.zip
spicec: Add a --title cmdline option (rhbz#662452)
Diffstat (limited to 'client/application.cpp')
-rw-r--r--client/application.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp
index 8f41ccf9..1bd3ff4f 100644
--- a/client/application.cpp
+++ b/client/application.cpp
@@ -2215,6 +2215,7 @@ bool Application::process_cmd_line(int argc, char** argv)
SPICE_OPT_DISPLAY_COLOR_DEPTH,
SPICE_OPT_DISABLE_DISPLAY_EFFECTS,
SPICE_OPT_CONTROLLER,
+ SPICE_OPT_TITLE,
#ifdef USE_SMARTCARD
SPICE_OPT_SMARTCARD,
SPICE_OPT_NOSMARTCARD,
@@ -2279,6 +2280,8 @@ bool Application::process_cmd_line(int argc, char** argv)
parser.add(SPICE_OPT_CONTROLLER, "controller", "enable external controller");
+ parser.add(SPICE_OPT_TITLE, "title", "set window title", "title", true, 't');
+
#ifdef USE_SMARTCARD
parser.add(SPICE_OPT_SMARTCARD, "smartcard", "enable smartcard channel");
parser.add(SPICE_OPT_NOSMARTCARD, "nosmartcard", "disable smartcard channel");
@@ -2393,6 +2396,9 @@ bool Application::process_cmd_line(int argc, char** argv)
}
_enable_controller = true;
return true;
+ case SPICE_OPT_TITLE:
+ set_title(val);
+ break;
#ifdef USE_SMARTCARD
case SPICE_OPT_SMARTCARD:
_smartcard_options->enable= true;