[TNEXT-812] Corrected signal name. 46/132346/3 submit/tizen/20170605.065045 submit/tizen/20170607.055817
authorRahul Dadhich <r.dadhich@samsung.com>
Fri, 2 Jun 2017 10:32:27 +0000 (16:02 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Fri, 2 Jun 2017 11:06:15 +0000 (16:36 +0530)
Change-Id: I72c7727f35a48474757fa959bc05eb2725e79bde
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
res/edje/gl-gengrid-item-albums.edc
src/2dview/gl-albums.c
src/2dview/gl-thumbs-edit.c
src/2dview/gl-thumbs-sel.c
src/2dview/gl-thumbs.c
src/util/gl-ext-ug-load.c
widget/src/gl_widget_create.c
widget/src/gl_widget_main.c

index 5bc56e3..09cbe38 100644 (file)
@@ -776,14 +776,14 @@ group {
                        target: "padding.top";
                }
                program { name: "badge_show";
-                       signal: "elm,state,elm.text.badge,visible";
+                       signal: "enable.text.badge,visible";
                        source: "elm";
                        action: STATE_SET "visible" 0.0;
                        target: "elm.text.badge";
                        target: "elm.image.badge";
                }
                program { name: "badge_hide";
-                       signal: "elm,state,elm.text.badge,hidden";
+                       signal: "disable.text.badge,visible";
                        source: "elm";
                        action:  STATE_SET "default" 0.0;
                        target: "elm.text.badge";
index f0012c6..ce8567d 100644 (file)
@@ -285,22 +285,22 @@ static char *__gl_albums_get_text(void *data, Evas_Object * obj,
                                int sel_cnt = eina_list_count(album_item->elist);
                                if (sel_cnt > 0) {
                                        elm_object_item_signal_emit(album_item->item,
-                                                                                               "elm,state,elm.text.badge,visible",
+                                                                                               "enable.text.badge,visible",
                                                                                                "elm");
                                        snprintf(buf, sizeof(buf), "%d", sel_cnt);
                                } else {
                                        elm_object_item_signal_emit(album_item->item,
-                                                                                               "elm,state,elm.text.badge,hidden",
+                                                                                               "disable.text.badge,visible",
                                                                                                "elm");
                                }
                        } else {
                                elm_object_item_signal_emit(album_item->item,
-                                                                                       "elm,state,elm.text.badge,hidden",
+                                                                                       "disable.text.badge,visible",
                                                                                        "elm");
                        }
                } else {
                        elm_object_item_signal_emit(album_item->item,
-                                                                               "elm,state,elm.text.badge,hidden",
+                                                                               "disable.text.badge,visible",
                                                                                "elm");
                }
        }
index a22822f..0b05a63 100644 (file)
@@ -168,12 +168,12 @@ static void __gl_thumbs_edit_selall_cb(void *data, Evas_Object * obj,
                char buf[GL_ALBUM_NAME_LEN_MAX] = { 0, };
                if (sel_all_cnt > 0) {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,visible",
+                                                                               "enable.text.badge,visible",
                                                                                "elm");
                        snprintf(buf, sizeof(buf), "%d", sel_all_cnt);
                } else {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,hidden",
+                                                                               "disable.text.badge,visible",
                                                                                "elm");
                }
                elm_gengrid_item_fields_update(gitem->album->item,
index ca4a708..128ac49 100644 (file)
@@ -192,11 +192,11 @@ static void __gl_thumbs_sel_selall_cb(void *data, Evas_Object * obj,
                int album_select_count = eina_list_count(gitem->album->elist);
                if (album_select_count > 0) {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,visible",
+                                                                               "enable.text.badge,visible",
                                                                                "elm");
                } else {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,hidden",
+                                                                               "disable.text.badge,visible",
                                                                                "elm");
                }
                elm_gengrid_item_fields_update(gitem->album->item,
index b1cbacf..d0bcbc5 100644 (file)
@@ -246,7 +246,7 @@ static void __gl_thumbs_check_changed(void *data, Evas_Object * obj,
                char buf[GL_ALBUM_NAME_LEN_MAX] = { 0, };
                if (album_select_count > 0) {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,visible",
+                                                                               "enable.text.badge,visible",
                                                                                "elm");
                        elm_object_item_signal_emit(gitem->album->item,
                                                                                "elm,state,focused",
@@ -254,7 +254,7 @@ static void __gl_thumbs_check_changed(void *data, Evas_Object * obj,
                        snprintf(buf, sizeof(buf), "%d", album_select_count);
                } else {
                        elm_object_item_signal_emit(gitem->album->item,
-                                                                               "elm,state,elm.text.badge,hidden",
+                                                                               "disable.text.badge,visible",
                                                                                "elm");
                }
                elm_gengrid_item_fields_update(gitem->album->item,
index a592b05..c59416e 100644 (file)
@@ -180,11 +180,11 @@ static void __gl_appcontrol_select_result_cb(app_control_h request,
        if (data && data->album && data->album->item) {
                if (sel_count > 0) {
                        elm_object_item_signal_emit(data->album->item,
-                                                                               "elm,state,elm.text.badge,visible",
+                                                                               "enable.text.badge,visible",
                                                                                "elm");
                } else {
                        elm_object_item_signal_emit(data->album->item,
-                                                                               "elm,state,elm.text.badge,hidden",
+                                                                               "disable.text.badge,visible",
                                                                                "elm");
                }
                elm_gengrid_item_fields_update(data->album->item, "elm.text.badge",
index 43a10ea..bb09fca 100644 (file)
@@ -195,7 +195,7 @@ void gl_widget_update_image_selection_data(_widget_data * widget_data)
                                                                                                 selected_count - 1],
                                        strlen(widget_data->
                                                   selected_images[widget_data->selected_count -
-                                                                                  1]));
+                                                                                  1] + 1));
                        free(widget_data->
                                 selected_images[widget_data->selected_count - 1]);
                        widget_data->selected_count--;
@@ -246,7 +246,7 @@ static Eina_Bool gl_widget_animator_cb(void *data)
                                                                                                                 1],
                                                        strlen(widget_data->
                                                                   selected_images[widget_data->
-                                                                                                  selected_count - 1]));
+                                                                                                  selected_count - 1] + 1));
                                } else {
                                        widget_data->images_count = 0;
                                }
@@ -369,7 +369,7 @@ static Eina_Bool gl_widget_animator_cb_for_less_than_five_images(void
                                                                                                 selected_count - 1],
                                        strlen(widget_data->
                                                   selected_images[widget_data->selected_count -
-                                                                                  1]));
+                                                                                  1] + 1));
                } else {
                        widget_data->images_count = 0;
                }
@@ -518,6 +518,7 @@ static Eina_Bool gl_widget_check_dateInfo(char **patharray, int count)
                free(next_date);
        }
 
+       free(date);
        return EINA_TRUE;
 }
 
index 006b4cd..50a6bdf 100644 (file)
@@ -216,6 +216,9 @@ int widget_Pause(widget_context_h context, void *data)
        DbgPrint("widget paused");
        struct widget_data *widget_data = NULL;
        widget_data = (struct widget_data *) getWidgetData(context);
+       if (!widget_data) {
+               return WIDGET_ERROR_INVALID_PARAMETER;
+       }
        if (widget_data->timer) {
                ecore_timer_del(widget_data->timer);
                widget_data->timer = NULL;