From: Sung-jae Park Date: Fri, 9 May 2014 01:42:12 +0000 (+0900) Subject: livebox_service_mouse_event API is changed. X-Git-Tag: submit/tizen_mobile/20150527.071719~1^2~30^2~14^2~16^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9abc87ad424bb8bbd14ee7a013562bd418fe2b20;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git livebox_service_mouse_event API is changed. it should be called when the box size is changed. Change-Id: Ifb27b67fdedb8172df33aaa71783c0a8db6e3e78 --- diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index 18ad12f..c462bc9 100644 --- a/packaging/liblivebox-viewer.spec +++ b/packaging/liblivebox-viewer.spec @@ -2,7 +2,7 @@ Name: liblivebox-viewer Summary: Library for developing the application -Version: 0.30.2 +Version: 0.31.0 Release: 1 Group: HomeTF/Livebox License: Flora diff --git a/src/livebox.c b/src/livebox.c index 1d31cf1..1eed536 100644 --- a/src/livebox.c +++ b/src/livebox.c @@ -1326,7 +1326,7 @@ struct livebox_common *lb_create_common_handle(struct livebox *handle, const cha common->pd.type = _PD_TYPE_SCRIPT; /* Used for handling the mouse event on a box */ - common->lb.mouse_event = livebox_service_mouse_event(common->pkgname); + common->lb.mouse_event = 0; /* Cluster infomration is not determined yet */ common->nr_of_sizes = 0x01; @@ -4048,8 +4048,15 @@ int lb_set_group(struct livebox_common *common, const char *cluster, const char void lb_set_size(struct livebox_common *common, int w, int h) { + int size_type; + common->lb.width = w; common->lb.height = h; + + size_type = livebox_service_size_type(w, h); + if (size_type != LB_SIZE_TYPE_UNKNOWN) { + common->lb.mouse_event = livebox_service_mouse_event(common->pkgname, size_type); + } } void lb_set_update_mode(struct livebox_common *common, int active_mode)