diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-12-13 15:37:37 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-12-16 16:25:55 +0100 |
commit | 4009747d2c901dda03996a2abeabefccfc450e0f (patch) | |
tree | ad37bef6fa3ae31453862661da8beee2b1fa9089 | |
parent | 367a5c8c3ae81dec30941586482c5168db6658e1 (diff) | |
download | spice-4009747d2c901dda03996a2abeabefccfc450e0f.tar.gz spice-4009747d2c901dda03996a2abeabefccfc450e0f.tar.xz spice-4009747d2c901dda03996a2abeabefccfc450e0f.zip |
spicec: Add a --title cmdline option (rhbz#662452)
-rw-r--r-- | client/application.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/application.cpp b/client/application.cpp index c380373f..8d5264b4 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -2177,6 +2177,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_GUI @@ -2235,6 +2236,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'); + for (int i = SPICE_CHANNEL_MAIN; i < SPICE_END_CHANNEL; i++) { _peer_con_opt[i] = RedPeer::ConnectionOptions::CON_OP_INVALID; } @@ -2340,6 +2343,9 @@ bool Application::process_cmd_line(int argc, char** argv) } _enable_controller = true; return true; + case SPICE_OPT_TITLE: + set_title(val); + break; case CmdLineParser::OPTION_HELP: parser.show_help(); return false; |