X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmaemo%2Fmodest-platform.c;h=1ec6099d2c9ecffcc1030c3677c147b37705d496;hp=db49d84cdcc06a73570665848728ef51a3ff1973;hb=8a821d22130a023dbd639d6a9117245320cb3a2b;hpb=aff1d21a84085908b5b8f25ebc70867f3b264e3a diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index db49d84..1ec6099 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -938,27 +938,27 @@ modest_platform_get_global_settings_dialog () void modest_platform_on_new_msg (void) { -/* HildonNotification *not; */ + HildonNotification *not; -/* /\* Create a new notification. FIXME put the right values, need */ -/* some more specs *\/ */ -/* not = hildon_notification_new ("TODO: (new email) Summary", */ -/* "TODO: (new email) Description", */ -/* "qgn_contact_group_chat_invitation", */ -/* "system.note.dialog"); */ + /* Create a new notification. FIXME put the right values, need + some more specs */ + not = hildon_notification_new ("TODO: (new email) Summary", + "TODO: (new email) Description", + "qgn_contact_group_chat_invitation", + "system.note.dialog"); -/* /\* Play sound SR-SND-18. TODO: play the right file *\/ */ -/* hildon_notification_set_sound (not, "/usr/share/sounds/ui-new_email.wav"); */ + /* Play sound SR-SND-18. TODO: play the right file */ + hildon_notification_set_sound (not, "/usr/share/sounds/ui-new_email.wav"); -/* /\* Set the led pattern *\/ */ -/* notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (not), "led-pattern", 3); */ + /* Set the led pattern */ + notify_notification_set_hint_int32 (NOTIFY_NOTIFICATION (not), "led-pattern", 3); -/* /\* Notify. We need to do this in an idle because this function */ -/* could be called from a thread *\/ */ -/* if (!notify_notification_show (NOTIFY_NOTIFICATION (not), NULL)) */ -/* g_error ("Failed to send notification"); */ + /* Notify. We need to do this in an idle because this function + could be called from a thread */ + if (!notify_notification_show (NOTIFY_NOTIFICATION (not), NULL)) + g_error ("Failed to send notification"); -/* g_object_unref (not); */ + g_object_unref (not); }