diff options
author | Ted Gould <ted@gould.cx> | 2014-10-06 21:23:31 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-06 21:23:31 -0500 |
commit | 5c7e4c72ea133d8c2aefc4edadf0601ab097f4a9 (patch) | |
tree | 3956f8ad4eb748e1604168b793def74dc51740fb /src | |
parent | b0c1cc8b72ceaf9ddfca8481f2c72a11dfa3c26a (diff) | |
download | ayatana-indicator-messages-5c7e4c72ea133d8c2aefc4edadf0601ab097f4a9.tar.gz ayatana-indicator-messages-5c7e4c72ea133d8c2aefc4edadf0601ab097f4a9.tar.bz2 ayatana-indicator-messages-5c7e4c72ea133d8c2aefc4edadf0601ab097f4a9.zip |
Name change
Diffstat (limited to 'src')
-rw-r--r-- | src/im-accounts-service.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/im-accounts-service.c b/src/im-accounts-service.c index 3f9e5f8..b7ab15d 100644 --- a/src/im-accounts-service.c +++ b/src/im-accounts-service.c @@ -41,7 +41,7 @@ static void im_accounts_service_init (ImAccountsService *self); static void im_accounts_service_dispose (GObject *object); static void im_accounts_service_finalize (GObject *object); static void user_changed (ActUserManager * manager, ActUser * user, gpointer user_data); -static void is_loaded (ActUserManager * manager, GParamSpec * pspect, gpointer user_data); +static void on_user_manager_loaded (ActUserManager * manager, GParamSpec * pspect, gpointer user_data); static void security_privacy_ready (GObject * obj, GAsyncResult * res, gpointer user_data); G_DEFINE_TYPE (ImAccountsService, im_accounts_service, G_TYPE_OBJECT); @@ -66,12 +66,12 @@ im_accounts_service_init (ImAccountsService *self) priv->user_manager = act_user_manager_get_default(); g_signal_connect(priv->user_manager, "user-changed", G_CALLBACK(user_changed), self); - g_signal_connect(priv->user_manager, "notify::is-loaded", G_CALLBACK(is_loaded), self); + g_signal_connect(priv->user_manager, "notify::is-loaded", G_CALLBACK(on_user_manager_loaded), self); gboolean isLoaded = FALSE; g_object_get(G_OBJECT(priv->user_manager), "is-loaded", &isLoaded, NULL); if (isLoaded) { - is_loaded(priv->user_manager, NULL, NULL); + on_user_manager_loaded(priv->user_manager, NULL, NULL); } } @@ -141,8 +141,10 @@ security_privacy_ready (GObject * obj, GAsyncResult * res, gpointer user_data) priv->touch_settings = proxy; } +/* When the user manager is loaded see if we have a user already loaded + along with. */ static void -is_loaded (ActUserManager * manager, GParamSpec * pspect, gpointer user_data) +on_user_manager_loaded (ActUserManager * manager, GParamSpec * pspect, gpointer user_data) { ImAccountsServicePrivate * priv = IM_ACCOUNTS_SERVICE_GET_PRIVATE(user_data); ActUser * user = NULL; |