From 4009747d2c901dda03996a2abeabefccfc450e0f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 13 Dec 2010 15:37:37 +0100 Subject: spicec: Add a --title cmdline option (rhbz#662452) --- client/application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- cgit