Icon : if icon file is not accessible, show the default icon
authorJin Yoon <jinny.yoon@samsung.com>
Wed, 19 Jun 2013 09:58:38 +0000 (18:58 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Wed, 19 Jun 2013 09:58:38 +0000 (18:58 +0900)
data/org.tizen.menu-screen.xml.in
packaging/org.tizen.menu-screen.spec
src/item.c

index e762739dc2ec6594b77949e0442f773d1f1e7c3f..f43e295a362548d32e333d1504cecaf2c23acef4 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.1.4" install-location="internal-only">
+<manifest xmlns="http://tizen.org/ns/packages" package="@PACKAGE_NAME@" version="1.1.5" install-location="internal-only">
        <label>Simple Menu-screen</label>
        <author email="jinny.yoon@samsung.com" href="www.samsung.com">Jin Yoon</author>
        <author email="yjoo93.park@samsung.com" href="www.samsung.com">Youngjoo Park</author>
index c14bb477d1274ada54d8b6a63ca77e7912e99fdb..e084705b4d33112876517401dd5be4f269f19cb5 100644 (file)
@@ -16,7 +16,7 @@
 
 Name:       org.tizen.menu-screen
 Summary:    An utility library of the menu screen
-Version:    1.1.4
+Version:    1.1.5
 Release:    1.1
 Group:      TO_BE/FILLED_IN
 License:    Flora Software License
index 5659d2c48ba483a051cc8888754167bd6bc27f1b..208c7796ec1d7a2e33e2691131481403f0107896 100644 (file)
@@ -507,9 +507,13 @@ HAPI void item_update(Evas_Object *item, app_info_t *ai)
        if (!ai->image) {
                if (0 != access(ai->icon, R_OK)) {
                        _E("Failed to access to [%s]", ai->icon);
-               } else {
-                       FILE *fp;
+                       if (ai->icon) free(ai->icon);
+                       ai->icon = strdup(DEFAULT_ICON);
+                       if (!ai->icon) _E("Critical! strdup error");
+               }
 
+               if (ai->icon) {
+                       FILE *fp;
                        fp = fopen(ai->icon, "rb");
                        if (fp) {
                                fseek(fp, 0L, SEEK_END);