From: Sung-jae Park Date: Tue, 13 May 2014 01:03:00 +0000 (+0900) Subject: livebox_service_mouse_event is changed. X-Git-Tag: submit/tizen/20140513.011101^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;p=platform%2Fframework%2Fweb%2Flivebox-viewer.git livebox_service_mouse_event is changed. Change-Id: Ifea745374c88f4bce9a31428c8ce7d89c43b7c33 --- diff --git a/packaging/liblivebox-viewer.changes b/packaging/liblivebox-viewer.changes new file mode 100644 index 0000000..e17084d --- /dev/null +++ b/packaging/liblivebox-viewer.changes @@ -0,0 +1,3 @@ +* Tue May 13 2014 Sung-jae Park submit/tizen/20140430.020209@1029621 +- livebox_service_mouse_event is changed. + diff --git a/packaging/liblivebox-viewer.spec b/packaging/liblivebox-viewer.spec index f8462ea..929d05f 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: Web Framework/Libraries License: Flora diff --git a/src/livebox.c b/src/livebox.c index 1d8b2e3..60e7606 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; @@ -4050,8 +4050,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)