diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-03-15 17:03:10 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-05-24 11:52:26 +0200 |
commit | cd0392b6dd36c5b5059d6bb6f46998054df0ba31 (patch) | |
tree | 0189d4cdfef24ee3ce3f61178a7ee6c161e67ae9 | |
parent | 9d6ac4f36ce15ddec873016402e26465d1fe7546 (diff) | |
download | network-manager-applet-lr/mobile-wizard-fixes.tar.gz |
nma/mobile-wizard: proceed to next page on double-clicking the providerlr/mobile-wizard-fixes
A slight usability improvement.
-rw-r--r-- | src/libnma/nma-mobile-wizard.c | 13 | ||||
-rw-r--r-- | src/libnma/nma-mobile-wizard.ui | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/libnma/nma-mobile-wizard.c b/src/libnma/nma-mobile-wizard.c index 9715c56e..7de5e3d1 100644 --- a/src/libnma/nma-mobile-wizard.c +++ b/src/libnma/nma-mobile-wizard.c @@ -570,6 +570,18 @@ providers_update_complete (NMAMobileWizard *self) } } +static void +providers_update_continue (NMAMobileWizard *self) +{ + NMAMobileWizardPrivate *priv = NMA_MOBILE_WIZARD_GET_PRIVATE (self); + + gtk_assistant_set_page_complete (GTK_ASSISTANT (self), + priv->providers_page, + TRUE); + + gtk_assistant_next_page (GTK_ASSISTANT (self)); +} + static gboolean focus_providers_view (gpointer user_data) { @@ -1441,6 +1453,7 @@ nma_mobile_wizard_class_init (NMAMobileWizardClass *klass) gtk_widget_class_bind_template_callback (widget_class, country_update_continue); gtk_widget_class_bind_template_callback (widget_class, providers_radio_toggled); gtk_widget_class_bind_template_callback (widget_class, providers_update_complete); + gtk_widget_class_bind_template_callback (widget_class, providers_update_continue); gtk_widget_class_bind_template_callback (widget_class, plan_combo_changed); gtk_widget_class_bind_template_callback (widget_class, plan_update_complete); gtk_widget_class_bind_template_callback (widget_class, apn_filter_cb); diff --git a/src/libnma/nma-mobile-wizard.ui b/src/libnma/nma-mobile-wizard.ui index 749c7acf..4c64f3c1 100644 --- a/src/libnma/nma-mobile-wizard.ui +++ b/src/libnma/nma-mobile-wizard.ui @@ -271,6 +271,7 @@ <property name="can_focus">True</property> <property name="model">providers_sort</property> <property name="search_column">0</property> + <signal name="row-activated" handler="providers_update_continue" swapped="yes"/> <child internal-child="selection"> <object class="GtkTreeSelection"/> </child> |