[gdm/wip/initial-setup] Bump accountsservice requirement to 0.6.13
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/initial-setup] Bump accountsservice requirement to 0.6.13
- Date: Thu, 19 May 2011 17:39:09 +0000 (UTC)
commit e1550febc597fcad0cc95327fef78f20354e3809
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 19 13:38:30 2011 -0400
Bump accountsservice requirement to 0.6.13
And adapt to api change in the create_user call.
configure.ac | 2 +-
gui/initial-setup/gdm-initial-setup.c | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 36dbcfd..2f9c66e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@ LIBCANBERRA_GTK_REQUIRED_VERSION=0.4
#FONTCONFIG_REQUIRED_VERSION=2.6.0
FONTCONFIG_REQUIRED_VERSION=2.5.0
UPOWER_REQUIRED_VERSION=0.9.0
-ACCOUNTS_SERVICE_REQUIRED_VERSION=0.6.11
+ACCOUNTS_SERVICE_REQUIRED_VERSION=0.6.13
EXTRA_COMPILE_WARNINGS(yes)
diff --git a/gui/initial-setup/gdm-initial-setup.c b/gui/initial-setup/gdm-initial-setup.c
index b2818f8..2958c65 100644
--- a/gui/initial-setup/gdm-initial-setup.c
+++ b/gui/initial-setup/gdm-initial-setup.c
@@ -967,12 +967,17 @@ create_user (SetupData *setup)
{
const gchar *username;
const gchar *fullname;
+ GError *error;
username = gtk_combo_box_text_get_active_text (OBJ(GtkComboBoxText*, "account-username-combo"));
fullname = gtk_entry_get_text (OBJ(GtkEntry*, "account-fullname-entry"));
- act_user_manager_create_user (setup->act_client, username, fullname, setup->account_type);
- setup->act_user = act_user_manager_get_user (setup->act_client, username);
+ error = NULL;
+ setup->act_user = act_user_manager_create_user (setup->act_client, username, fullname, setup->account_type, &error);
+ if (error != NULL) {
+ g_warning ("Failed to create user: %s", error->message);
+ g_error_free (error);
+ }
}
static void save_account_data (SetupData *setup);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]