summaryrefslogtreecommitdiff
path: root/capplets/about-me/mate-about-me.c
diff options
context:
space:
mode:
authoryetist <[email protected]>2018-08-31 16:01:01 +0800
committerraveit65 <[email protected]>2018-10-31 13:25:42 +0100
commita6f0e570dbacb2873a76d2ac3173382ea8eddfc3 (patch)
tree81b63b2c60e2cdd4211d540bb4f815f7ec6601ef /capplets/about-me/mate-about-me.c
parentc5649adef21641fcf8fc25865c6b6f530ba5521b (diff)
downloadmate-control-center-a6f0e570dbacb2873a76d2ac3173382ea8eddfc3.tar.bz2
mate-control-center-a6f0e570dbacb2873a76d2ac3173382ea8eddfc3.tar.xz
for accounts service support
Diffstat (limited to 'capplets/about-me/mate-about-me.c')
-rw-r--r--capplets/about-me/mate-about-me.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/capplets/about-me/mate-about-me.c b/capplets/about-me/mate-about-me.c
index 6a696a0c..d73c046f 100644
--- a/capplets/about-me/mate-about-me.c
+++ b/capplets/about-me/mate-about-me.c
@@ -410,12 +410,10 @@ about_me_fingerprint_button_clicked_cb (GtkWidget *button, MateAboutMe *me)
#if HAVE_ACCOUNTSSERVICE
static void on_user_is_loaded_changed (ActUser *user, GParamSpec *pspec, MateAboutMe* me)
{
- if (act_user_is_loaded (user)) {
- about_me_load_photo (me);
- g_signal_handlers_disconnect_by_func (G_OBJECT (user),
- G_CALLBACK (on_user_is_loaded_changed),
- me);
+ if (!act_user_is_loaded (user)) {
+ return;
}
+ about_me_load_photo (me);
}
#endif
@@ -480,11 +478,14 @@ about_me_setup_dialog (void)
g_object_get (manager, "is-loaded", &loaded, NULL);
if (!loaded) {
g_signal_connect (me->user, "notify::is-loaded", G_CALLBACK (on_user_is_loaded_changed), me);
+ } else {
+ /* Contact Tab */
+ about_me_load_photo (me);
}
-#endif
-
+#else
/* Contact Tab */
about_me_load_photo (me);
+#endif
widget = WID ("fullname");
str = g_strdup_printf ("<b><span size=\"xx-large\">%s</span></b>", me->username);