X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-platform.c;h=ee775220ffdc6ea8e9d44a2ce7fc3b9c4d7b1a74;hp=d57b6f1e404d10461d73d8af457fe0c0e32786fb;hb=ea3f9a4e8729e4c3d0a411d2e06b337be24f4ec6;hpb=6ebf456ad9d34d07c36667fa1e05118076d5dc38 diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index d57b6f1..ee77522 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -51,10 +51,11 @@ static osso_context_t *osso_context = NULL; gboolean modest_platform_init (void) -{ +{ + osso_hw_state_t hw_state = { 0 }; osso_context = - osso_initialize(PACKAGE, PACKAGE_VERSION, - TRUE, NULL); + osso_initialize(PACKAGE,PACKAGE_VERSION, + FALSE, NULL); if (!osso_context) { g_printerr ("modest: failed to acquire osso context\n"); return FALSE; @@ -83,7 +84,8 @@ modest_platform_init (void) */ /* Register hardware event dbus callback: */ - osso_hw_set_event_cb(osso_context, NULL, modest_osso_cb_hw_state_handler, NULL); + hw_state.shutdown_ind = TRUE; + osso_hw_set_event_cb(osso_context, NULL,/*&hw_state*/ modest_osso_cb_hw_state_handler, NULL); /* Register osso auto-save callbacks: */ result = osso_application_set_autosave_cb (osso_context,