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:23:33 +0100 |
commit | 29a2988f15d6175cb5b23ac044ed795c126447a3 (patch) | |
tree | e764e78d01385e3f232bfe3f9e8f8b14bef8f403 | |
parent | 5cea3389541d12a7a99d3eb0c16093d154835401 (diff) | |
download | spice-29a2988f15d6175cb5b23ac044ed795c126447a3.tar.gz spice-29a2988f15d6175cb5b23ac044ed795c126447a3.tar.xz spice-29a2988f15d6175cb5b23ac044ed795c126447a3.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 a484bbc7..96a5c24a 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -2213,6 +2213,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, @@ -2277,6 +2278,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"); @@ -2391,6 +2394,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; |