From 18e175b03d6b4c27016bc9f8809c475aad16d8cc Mon Sep 17 00:00:00 2001 From: Jin Yoon Date: Thu, 27 Jun 2013 14:16:53 +0900 Subject: [PATCH] Prevent 0627 --- data/org.tizen.menu-screen.xml.in | 2 +- packaging/org.tizen.menu-screen.spec | 2 +- src/item.c | 5 ++++- src/item_event.c | 2 -- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/data/org.tizen.menu-screen.xml.in b/data/org.tizen.menu-screen.xml.in index 0930cbc..570aa45 100755 --- a/data/org.tizen.menu-screen.xml.in +++ b/data/org.tizen.menu-screen.xml.in @@ -1,5 +1,5 @@ - + Jin Yoon Youngjoo Park diff --git a/packaging/org.tizen.menu-screen.spec b/packaging/org.tizen.menu-screen.spec index 7db69b8..982d1fe 100644 --- a/packaging/org.tizen.menu-screen.spec +++ b/packaging/org.tizen.menu-screen.spec @@ -16,7 +16,7 @@ Name: org.tizen.menu-screen Summary: An utility library of the menu screen -Version: 1.1.9 +Version: 1.1.10 Release: 1.1 Group: TO_BE/FILLED_IN License: Flora Software License diff --git a/src/item.c b/src/item.c index 208c779..0c98b4a 100644 --- a/src/item.c +++ b/src/item.c @@ -505,9 +505,12 @@ HAPI void item_update(Evas_Object *item, app_info_t *ai) ret_if(NULL == ai); if (!ai->image) { - if (0 != access(ai->icon, R_OK)) { + if (ai->icon && 0 == access(ai->icon, R_OK)) { + ; + } else { _E("Failed to access to [%s]", ai->icon); if (ai->icon) free(ai->icon); + ai->icon = strdup(DEFAULT_ICON); if (!ai->icon) _E("Critical! strdup error"); } diff --git a/src/item_event.c b/src/item_event.c index 7102449..4b9ef37 100644 --- a/src/item_event.c +++ b/src/item_event.c @@ -106,7 +106,6 @@ static void _uninstall_down_cb(void *data, Evas_Object *obj, const char* emissio static void _uninstall_up_cb(void *item, Evas_Object *obj, const char* emission, const char* source) { Evas_Object *win; - Evas_Object *scroller; ret_if(mouse_is_scrolling()); @@ -114,7 +113,6 @@ static void _uninstall_up_cb(void *item, Evas_Object *obj, const char* emission, ret_if(NULL == win); _D("Uninstall button is up"); - scroller = evas_object_data_get(item, "scroller"); obj = evas_object_data_get(obj, "evas_object"); ret_if(NULL == obj); ret_if(NULL == evas_object_data_get(obj, "removing")); -- 2.34.1