Update code for new API signature.
authorSung-jae Park <nicesj.park@samsung.com>
Thu, 9 Apr 2015 01:00:53 +0000 (10:00 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Thu, 9 Apr 2015 01:00:53 +0000 (10:00 +0900)
New enumeration values are introduced to control the freezed visibility.
To make it work properly, this patch will check the freezed visiblity status,
and set the proper visibility to the widget handler.

[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: I5ed1179d08ca9457238eced43fec4c129a805bd3

widget_viewer_evas/src/widget_viewer_evas.c

index 0201b18..5b3e5fa 100644 (file)
@@ -325,7 +325,7 @@ struct widget_data {
        int refcnt;
        int overlay_update_counter;
        Ecore_Timer *overlay_timer;
-       int freezed_visibility;
+       widget_visibility_status_e freezed_visibility;
 
        Eina_List *gbar_script_object_list;
        Eina_List *widget_script_object_list;
@@ -3403,7 +3403,12 @@ static void update_visibility(struct widget_data *data)
 
        if (data->is.field.freeze_visibility) {
                DbgPrint("Freezed visibility: %X (%s)\n", data->freezed_visibility, widget_viewer_get_pkgname(data->handle));
-               (void)widget_viewer_set_visibility(data->handle, data->freezed_visibility);
+
+               if (data->freezed_visibility == WIDGET_VISIBILITY_STATUS_SHOW_FIXED) {
+                       (void)widget_viewer_set_visibility(data->handle, WIDGET_SHOW);
+               } else if (data->freezed_visibility == WIDGET_VISIBILITY_STATUS_HIDE_FIXED) {
+                       (void)widget_viewer_set_visibility(data->handle, WIDGET_HIDE_WITH_PAUSE);
+               }
                return;
        }