[gnome-control-center/wip/feborges/new-users-panel: 15/17] user-accounts: Select user after account is created
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/feborges/new-users-panel: 15/17] user-accounts: Select user after account is created
- Date: Tue, 12 Jul 2016 16:00:29 +0000 (UTC)
commit 3c64b5a611354aabd47409fa3704603cf3381907
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Jul 12 17:15:23 2016 +0200
user-accounts: Select user after account is created
https://bugzilla.gnome.org/show_bug.cgi?id=767065
panels/user-accounts/um-carousel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-carousel.c b/panels/user-accounts/um-carousel.c
index 4f68447..0f44f8d 100644
--- a/panels/user-accounts/um-carousel.c
+++ b/panels/user-accounts/um-carousel.c
@@ -195,6 +195,7 @@ insert_item (UmCarousel *self,
gtk_box_reorder_child (GTK_BOX (box), item, position);
}
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (item), TRUE);
gtk_widget_show_all (box);
}
@@ -225,6 +226,7 @@ model_changed (GListModel *list,
for (i = 0; i < added; i++) {
GObject *item;
GtkWidget *widget;
+ gchar *page_name;
item = g_list_model_get_item (list, position + i);
widget = priv->create_widget_func (item, priv->create_widget_func_data);
@@ -237,6 +239,10 @@ model_changed (GListModel *list,
g_object_unref (widget);
g_object_unref (item);
+
+ page_name = g_strdup_printf ("%d", g_sequence_get_length (priv->pages) - 1);
+ gtk_stack_set_visible_child_name (priv->stack, page_name);
+ g_free (page_name);
}
have_more_pages = g_sequence_get_length (priv->pages) > 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]