X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-datetime-formatter.c;h=db50dc1c280fbca8d6dbf7dcd8e8a93d2dcf9c55;hp=dfd510ec07478c5aab342d4b9fdc90a91f11e98d;hb=4d39841513a3a7f7aa9d38ab97cb9fcc9171e80b;hpb=7f3ce21f5ab5010b64b1242a7873183776f6a4e6 diff --git a/src/modest-datetime-formatter.c b/src/modest-datetime-formatter.c index dfd510e..db50dc1 100644 --- a/src/modest-datetime-formatter.c +++ b/src/modest-datetime-formatter.c @@ -203,6 +203,7 @@ init_format (ModestDatetimeFormatter *obj) osso_time_set_notification_cb (modest_platform_get_osso_context (), time_changed_cb, obj); + time_get_synced (); #endif } @@ -227,6 +228,11 @@ modest_datetime_formatter_finalize (GObject *obj) priv->gconf_handler = 0; gconf_client_remove_dir (gconf, HILDON2_GCONF_FORMAT_DIR, NULL); + + /* Disconnect notification */ +#ifdef MODEST_USE_LIBTIME + osso_time_set_notification_cb (modest_platform_get_osso_context (), NULL, NULL); +#endif #endif G_OBJECT_CLASS (parent_class)->finalize (obj); }