[gnome-initial-setup] keyboard page: Go to next when active row is activated twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] keyboard page: Go to next when active row is activated twice
- Date: Sun, 7 Sep 2014 15:19:31 +0000 (UTC)
commit 488db177ed8f76b170d6a923e02ad8dfceb61038
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 7 10:11:45 2014 -0400
keyboard page: Go to next when active row is activated twice
This lets you hit Enter twice to select a region and go to the
next page, which is expected behavior in wizard-like UIs like
this.
.../pages/keyboard/gis-keyboard-page.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
index 9ff00d3..aa497b3 100644
--- a/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
+++ b/gnome-initial-setup/pages/keyboard/gis-keyboard-page.c
@@ -171,6 +171,13 @@ localed_proxy_ready (GObject *source,
}
static void
+input_confirmed (CcInputChooser *chooser,
+ GisKeyboardPage *self)
+{
+ gis_assistant_next_page (gis_driver_get_assistant (GIS_PAGE (self)->driver));
+}
+
+static void
gis_keyboard_page_constructed (GObject *object)
{
GisKeyboardPage *self = GIS_KEYBOARD_PAGE (object);
@@ -180,6 +187,9 @@ gis_keyboard_page_constructed (GObject *object)
G_OBJECT_CLASS (gis_keyboard_page_parent_class)->constructed (object);
+ g_signal_connect (priv->input_chooser, "confirm",
+ G_CALLBACK (input_confirmed), self);
+
priv->input_settings = g_settings_new (GNOME_DESKTOP_INPUT_SOURCES_DIR);
g_settings_delay (priv->input_settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]