[gnome-initial-setup] enterprise account page: Forward the shown signal
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] enterprise account page: Forward the shown signal
- Date: Sun, 7 Sep 2014 15:19:51 +0000 (UTC)
commit 993addd06409962d5b1176d0920eb20f2fcd4b4b
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 7 11:11:38 2014 -0400
enterprise account page: Forward the shown signal
Add a function to forward the 'shown' signal from the main
account page. The function puts the focus on the domain
entry.
.../pages/account/gis-account-page-enterprise.c | 8 ++++++++
.../pages/account/gis-account-page-enterprise.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
index 9451777..865d42e 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
+++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.c
@@ -811,3 +811,11 @@ gis_account_page_enterprise_init (GisAccountPageEnterprise *page)
{
gtk_widget_init_template (GTK_WIDGET (page));
}
+
+void
+gis_account_page_enterprise_shown (GisAccountPageEnterprise *page)
+{
+ GisAccountPageEnterprisePrivate *priv = gis_account_page_enterprise_get_instance_private (page);
+
+ gtk_widget_grab_focus (priv->domain_entry);
+}
diff --git a/gnome-initial-setup/pages/account/gis-account-page-enterprise.h
b/gnome-initial-setup/pages/account/gis-account-page-enterprise.h
index 48acbe9..55f0bb2 100644
--- a/gnome-initial-setup/pages/account/gis-account-page-enterprise.h
+++ b/gnome-initial-setup/pages/account/gis-account-page-enterprise.h
@@ -56,6 +56,7 @@ gboolean gis_account_page_enterprise_apply (GisAccountPageEnterprise *enterprise
GCancellable *cancellable,
GisPageApplyCallback callback,
gpointer data);
+void gis_account_page_enterprise_shown (GisAccountPageEnterprise *enterprise);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]