From 639ad8df91efc4d038ad02a948bc67117ec58198 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 28 Feb 2011 12:24:27 +0900 Subject: [PATCH] Add -g option to eekboard-xml. --- src/xml-main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xml-main.c b/src/xml-main.c index 943ac7c8..313263ef 100644 --- a/src/xml-main.c +++ b/src/xml-main.c @@ -40,6 +40,7 @@ static gchar *opt_model = NULL; static gchar *opt_layouts = NULL; static gchar *opt_options = NULL; static gchar *opt_list = NULL; +static guint opt_group = 0; static const GOptionEntry options[] = { {"load", 'l', 0, G_OPTION_ARG_STRING, &opt_load, @@ -54,6 +55,8 @@ static const GOptionEntry options[] = { N_("Specify layouts")}, {"options", '\0', 0, G_OPTION_ARG_STRING, &opt_options, N_("Specify options")}, + {"group", 'g', 0, G_OPTION_ARG_INT, &opt_group, + N_("Specify group")}, {NULL} }; @@ -110,6 +113,8 @@ main (int argc, char **argv) keyboard = eek_keyboard_new (layout, 640, 480); g_object_unref (layout); + eek_keyboard_set_group (keyboard, opt_group); + widget = eek_gtk_keyboard_new (keyboard); g_object_unref (keyboard);