[gnome-initial-setup] region 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] region page: Go to next when active row is activated twice
- Date: Sun, 7 Sep 2014 15:19:21 +0000 (UTC)
commit 323d8df2cf4d6031880b98c88d8074d03b12f90a
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 7 09:59:19 2014 -0400
region 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.
gnome-initial-setup/pages/region/gis-region-page.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/region/gis-region-page.c
b/gnome-initial-setup/pages/region/gis-region-page.c
index 44ebc78..b1a5f9b 100644
--- a/gnome-initial-setup/pages/region/gis-region-page.c
+++ b/gnome-initial-setup/pages/region/gis-region-page.c
@@ -170,6 +170,13 @@ localed_proxy_ready (GObject *source,
}
static void
+region_confirmed (CcRegionChooser *chooser,
+ GisRegionPage *page)
+{
+ gis_assistant_next_page (gis_driver_get_assistant (GIS_PAGE (page)->driver));
+}
+
+static void
gis_region_page_constructed (GObject *object)
{
GisRegionPage *page = GIS_REGION_PAGE (object);
@@ -182,6 +189,8 @@ gis_region_page_constructed (GObject *object)
g_signal_connect (priv->region_chooser, "notify::locale",
G_CALLBACK (region_changed), page);
+ g_signal_connect (priv->region_chooser, "confirm",
+ G_CALLBACK (region_confirmed), page);
/* If we're in new user mode then we're manipulating system settings */
if (gis_driver_get_mode (GIS_PAGE (page)->driver) == GIS_DRIVER_MODE_NEW_USER)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]