Handle widget instance create aborted event 55/119555/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 17 Mar 2017 08:33:49 +0000 (17:33 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 17 Mar 2017 08:36:20 +0000 (17:36 +0900)
When the instance create callback of the widget app returns an error,
the widget viewer gets widget instance create aborted event from
the widget app.

Requires:
 - https://review.tizen.org/gerrit/#/c/119476/
 - https://review.tizen.org/gerrit/#/c/119553/
 - https://review.tizen.org/gerrit/#/c/119554/

Change-Id: Iec11fec8cd8803e73712514c20d77509767bc474
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
widget_viewer_evas/src/widget_viewer_evas.c

index 0362fe5..b089ec8 100644 (file)
@@ -532,6 +532,11 @@ static int __instance_event_cb(const char *widget_id, const char *instance_id, i
                info->state = WIDGET_STATE_DETACHED;
                __display_overlay_text(info);
                break;
+       case WIDGET_INSTANCE_EVENT_CREATE_ABORTED:
+               event_info.event = WIDGET_EVENT_CREATED;
+               smart_signal = WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED;
+               __display_overlay_text(info);
+               break;
        default:
                /* unhandled event */
                return 0;