diff options
author | Ted Gould <ted@gould.cx> | 2014-10-06 21:09:43 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-06 21:09:43 -0500 |
commit | 6fd3e934029a47e7ec8818dc21b7f127863eda56 (patch) | |
tree | c01891f62a5801d4c7ba7460b46c91206ec0883d /src | |
parent | 29fd0490ab7f2a03b87b34247743fa03e3278faf (diff) | |
download | ayatana-indicator-messages-6fd3e934029a47e7ec8818dc21b7f127863eda56.tar.gz ayatana-indicator-messages-6fd3e934029a47e7ec8818dc21b7f127863eda56.tar.bz2 ayatana-indicator-messages-6fd3e934029a47e7ec8818dc21b7f127863eda56.zip |
Check for loading of a cached instance
Diffstat (limited to 'src')
-rw-r--r-- | src/im-accounts-service.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/im-accounts-service.c b/src/im-accounts-service.c index a993e6e..40c269c 100644 --- a/src/im-accounts-service.c +++ b/src/im-accounts-service.c @@ -64,6 +64,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); + + gboolean isLoaded = FALSE; + g_object_get(G_OBJECT(priv->user_manager), "is-loaded", &isLoaded, NULL); + if (isLoaded) { + is_loaded(priv->user_manager, NULL, NULL); + } } static void |