To let user define the keyboard shortcut for disabling / enabling inputs. --- gtk/spice-option.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/spice-option.c b/gtk/spice-option.c index 958e03c..c028371 100644 --- a/gtk/spice-option.c +++ b/gtk/spice-option.c @@ -41,6 +41,7 @@ static gint cache_size = 0; static gint glz_window_size = 0; static gchar *secure_channels = NULL; static gchar *shared_dir = NULL; +static gchar *disable_inputs_sequence = NULL; G_GNUC_NORETURN static void option_version(void) @@ -194,6 +195,8 @@ GOptionGroup* spice_get_option_group(void) N_("Glz compression history size"), N_("<bytes>") }, { "spice-shared-dir", '\0', 0, G_OPTION_ARG_FILENAME, &shared_dir, N_("Shared directory"), N_("<dir>") }, + { "spice-disable-inputs-sequence", '\0', 0, G_OPTION_ARG_STRING, &disable_inputs_sequence, + N_("Keyboard shortcut for disabling or enabling inputs"), N_("<keyboard shortcut>") }, { "spice-debug", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, option_debug, N_("Enable Spice-GTK debugging"), NULL }, @@ -281,4 +284,6 @@ void spice_set_session_option(SpiceSession *session) g_object_set(session, "glz-window-size", glz_window_size, NULL); if (shared_dir) g_object_set(session, "shared-dir", shared_dir, NULL); + if (disable_inputs_sequence) + g_object_set(session, "disable-inputs-sequence", disable_inputs_sequence, NULL); } -- 1.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel