From 606bf861df1627f6c29b64dc22418d2b3ba58ffa Mon Sep 17 00:00:00 2001 From: Kyuho Jo Date: Wed, 13 May 2015 11:31:48 +0900 Subject: [PATCH] Set default 'display_applist' with 'NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY' Change-Id: I0e8be20b70ccd4d1fcdb2197b54dd30c9de6046d Signed-off-by: Kyuho Jo --- src/notification.c | 2 +- src/notification_ipc.c | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/notification.c b/src/notification.c index d8e5127..3b271d7 100644 --- a/src/notification.c +++ b/src/notification.c @@ -2248,7 +2248,7 @@ static notification_h _notification_create(notification_type_e type) noti->sound_type = NOTIFICATION_SOUND_TYPE_NONE; noti->vibration_type = NOTIFICATION_VIBRATION_TYPE_NONE; noti->led_operation = NOTIFICATION_LED_OP_OFF; - noti->display_applist = NOTIFICATION_DISPLAY_APP_ALL; + noti->display_applist = NOTIFICATION_DISPLAY_APP_NOTIFICATION_TRAY; /*! * \NOTE * Other fields are already initialized with ZERO. diff --git a/src/notification_ipc.c b/src/notification_ipc.c index 5c51b23..0bd8255 100644 --- a/src/notification_ipc.c +++ b/src/notification_ipc.c @@ -991,7 +991,7 @@ static struct packet *_handler_delete_multiple(pid_t pid, int handle, const stru int buf[10] = {0,}; int num_deleted = 0; - NOTIFICATION_ERR("delete_noti_multiple"); + NOTIFICATION_INFO("delete_noti_multiple"); if (!packet) { NOTIFICATION_ERR("a packet is null"); @@ -1009,21 +1009,23 @@ static struct packet *_handler_delete_multiple(pid_t pid, int handle, const stru &(buf[8]), &(buf[9])); - NOTIFICATION_ERR("packet data count:%d", ret); - NOTIFICATION_ERR("packet data num deleted:%d", num_deleted); + NOTIFICATION_INFO("packet data count:%d", ret); + NOTIFICATION_INFO("packet data num deleted:%d", num_deleted); int i = 0; for (i = 0 ; i < 10 ; i++) { - NOTIFICATION_ERR("packet data[%d]:%d",i, buf[i]); + NOTIFICATION_INFO("packet data[%d]:%d",i, buf[i]); } if (ret == 11) { notification_op *noti_op = notification_ipc_create_op( NOTIFICATION_OP_DELETE, num_deleted, buf, num_deleted, NULL); - if (noti_op != NULL) { - notification_call_changed_cb(noti_op, num_deleted); - free(noti_op); + if (noti_op == NULL) { + NOTIFICATION_ERR("notification_ipc_create_op failed"); + return NULL; } + notification_call_changed_cb(noti_op, num_deleted); + free(noti_op); } return NULL; -- 2.7.4