From a92551697104515d9e86785fdbf7aecb0d7cbad9 Mon Sep 17 00:00:00 2001 From: "sunil85.kim" Date: Fri, 3 May 2013 18:55:41 +0900 Subject: [PATCH] Correction of path for usb tethering icon Change-Id: I13bdf1fc821332b740a709cc3931787e5820c81a --- include/mobileap_notification.h | 2 +- packaging/mobileap-agent.spec | 2 +- src/mobileap_notification.c | 14 ++++++++++++-- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/include/mobileap_notification.h b/include/mobileap_notification.h index 6a7ee31..68b27aa 100644 --- a/include/mobileap_notification.h +++ b/include/mobileap_notification.h @@ -23,7 +23,7 @@ #include #define MH_NOTI_STR_MAX 50 -#define MH_NOTI_ICON_PATH "/usr/apps/org.tizen.tethering/res/images/Q02_Notification_MobileAP.png" +#define MH_NOTI_ICON_PATH "/usr/ug/res/images/ug-setting-mobileap-efl/tethering.png" int _create_timeout_noti(const char *content, const char *title, const char *icon_path); diff --git a/packaging/mobileap-agent.spec b/packaging/mobileap-agent.spec index 3bec494..727afef 100644 --- a/packaging/mobileap-agent.spec +++ b/packaging/mobileap-agent.spec @@ -1,6 +1,6 @@ Name: mobileap-agent Summary: Mobile AP daemon for setting tethering environments -Version: 0.1.88 +Version: 0.1.89 Release: 1 Group: TO_BE/FILLED_IN License: Flora License diff --git a/src/mobileap_notification.c b/src/mobileap_notification.c index 62783f1..3274e72 100644 --- a/src/mobileap_notification.c +++ b/src/mobileap_notification.c @@ -70,8 +70,10 @@ int _create_timeout_noti(const char *content, const char *title, return MOBILE_AP_ERROR_INTERNAL; } + /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */ ret = notification_set_property(noti, - NOTIFICATION_PROP_VOLATILE_DISPLAY); + NOTIFICATION_PROP_VOLATILE_DISPLAY | + NOTIFICATION_PROP_DISABLE_APP_LAUNCH); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_property [%d]\n", ret); goto FAIL; @@ -114,11 +116,14 @@ int _create_timeout_noti(const char *content, const char *title, goto FAIL; } + /* Unnecessary Code before app control implementation */ + #if 0 ret = notification_set_application(noti, MH_NOTI_APP_NAME); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_application [%d]\n", ret); goto FAIL; } + #endif ret = notification_insert(noti, &timeout_noti_id); if (ret != NOTIFICATION_ERROR_NONE) { @@ -183,9 +188,11 @@ int _create_connected_noti(const char *content, const char *title, return MOBILE_AP_ERROR_INTERNAL; } + /* To prevent the app running, using the flag(NOTIFICATION_PROP_DISABLE_APP_LAUNCH) */ ret = notification_set_property(noti, NOTIFICATION_PROP_DISABLE_AUTO_DELETE | - NOTIFICATION_PROP_VOLATILE_DISPLAY); + NOTIFICATION_PROP_VOLATILE_DISPLAY | + NOTIFICATION_PROP_DISABLE_APP_LAUNCH); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_property [%d]\n", ret); goto FAIL; @@ -227,11 +234,14 @@ int _create_connected_noti(const char *content, const char *title, goto FAIL; } + /* Unnecessary Code before app control implementation */ + #if 0 ret = notification_set_application(noti, MH_NOTI_APP_NAME); if (ret != NOTIFICATION_ERROR_NONE) { ERR("Fail to notification_set_application [%d]\n", ret); goto FAIL; } + #endif ret = notification_insert(noti, &connected_noti_id); if (ret != NOTIFICATION_ERROR_NONE) { -- 2.7.4