[TSAM-797] Modify EDJ installation path and avoid crash 24/56224/2 accepted/tizen/mobile/20160106.003544 submit/tizen_mobile/20160105.120057
authorPrakash <prakashc.p@samsung.com>
Tue, 5 Jan 2016 11:56:33 +0000 (17:26 +0530)
committerPrakashPedarla Samsung <prakashc.p@samsung.com>
Tue, 5 Jan 2016 11:45:47 +0000 (03:45 -0800)
Change-Id: Ifda38aba42272512db9354cc3061a8841bdeb1f3
Signed-off-by: Prakash <prakashc.p@samsung.com>
CMakeLists.txt
packaging/attach-panel-gallery.spec
src/util/ge-ui-util.c
src/view/ge-gridview.c

index 3b49d76..2e46f90 100644 (file)
@@ -100,8 +100,8 @@ ADD_CUSTOM_COMMAND(OUTPUT attach-panel-gallery-images.edj
 ADD_CUSTOM_TARGET(gallery_efl_edj_build DEPENDS attach-panel-gallery.edj attach-panel-gallery-images.edj)
 ADD_DEPENDENCIES(${PROJECT_NAME} gallery_efl_edj_build)
 
-INSTALL(FILES ${CMAKE_BINARY_DIR}/attach-panel-gallery.edj DESTINATION ${RESDIR}/edje/attach-panel-gallery)
-INSTALL(FILES ${CMAKE_BINARY_DIR}/attach-panel-gallery-images.edj DESTINATION ${RESDIR}/edje/attach-panel-gallery)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/attach-panel-gallery.edj DESTINATION ${RESDIR}/edje/${PROJECT_NAME})
+INSTALL(FILES ${CMAKE_BINARY_DIR}/attach-panel-gallery-images.edj DESTINATION ${RESDIR}/edje/${PROJECT_NAME})
 
 INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/res/${GE_IMG_C_DIR} DESTINATION ${RESDIR}/images/attach-panel-gallery)
 INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR})
index a929498..77a63f7 100644 (file)
@@ -73,7 +73,7 @@ ln -sf /usr/bin/ug-client %{TZ_SYS_RO_UG}/bin/attach-panel-gallery
 %manifest attach-panel-gallery.manifest
 %defattr(-,root,root,-)
 %{TZ_SYS_RO_UG}/lib/libug-attach-panel-gallery.so*
-%{TZ_SYS_RO_UG}/res/edje/attach-panel-gallery/*
+%{TZ_SYS_RO_UG}/res/edje/ug-attach-panel-gallery/*
 %{TZ_SYS_RO_UG}/res/images/attach-panel-gallery/*
 %{TZ_SYS_RO_UG}/res/locale/*/*/attach-panel-gallery.mo
 %{TZ_SYS_RO_PACKAGES}/attach-panel-gallery.xml
index 34386b2..bdb7497 100644 (file)
@@ -84,6 +84,7 @@ Evas_Object* ge_ui_load_edj(Evas_Object *parent, const char *file, const char *g
        if (eo) {
                r = elm_layout_file_set(eo, file, group);
                if (!r) {
+                       ge_dbg("failed to load layout");
                        evas_object_del(eo);
                        return NULL;
                }
index 4a041a7..27e0841 100644 (file)
@@ -1790,6 +1790,8 @@ GE_GRID_FAILED:
 
 void _ge_grid_change_selection_mode(ge_ugdata *ugd, bool state)
 {
+       GE_CHECK(ugd);
+       GE_CHECK(ugd->thumbs_d);
        ge_dbg("changing selection type and mode is %d", _ge_get_view_mode(ugd));
 #if 0
        ugd->selected_elist = NULL;