const char *smart_signal = NULL;
char *content_info;
widget_instance_h handle;
+ int err;
DbgPrint("widget_id : %s (%d)", widget_id, event);
if (event == WIDGET_INSTANCE_EVENT_APP_RESTART_REQUEST) {
__display_overlay_text(info);
break;
case WIDGET_INSTANCE_EVENT_CREATE_ABORTED:
- event_info.error = WIDGET_ERROR_CANCELED;
+ handle = widget_instance_get_instance(info->widget_id,
+ info->instance_id);
+ if (!handle) {
+ ErrPrint("instance handle of widget(%s) is invalid data",
+ info->instance_id);
+ break;
+ }
+
+ widget_instance_get_error_code(handle, &err);
+ widget_instance_unref(handle);
+ if (err == 0)
+ err = WIDGET_ERROR_CANCELED;
+
+ event_info.error = err;
event_info.event = WIDGET_EVENT_CREATED;
smart_signal = WIDGET_SMART_SIGNAL_WIDGET_CREATE_ABORTED;
info->pid = -1;