livebox_service_mouse_event is changed. 78/20778/2 tizen submit/tizen/20140513.011101
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 13 May 2014 01:03:00 +0000 (10:03 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 13 May 2014 01:07:41 +0000 (10:07 +0900)
Change-Id: Ifea745374c88f4bce9a31428c8ce7d89c43b7c33

packaging/liblivebox-viewer.changes [new file with mode: 0644]
packaging/liblivebox-viewer.spec
src/livebox.c

diff --git a/packaging/liblivebox-viewer.changes b/packaging/liblivebox-viewer.changes
new file mode 100644 (file)
index 0000000..e17084d
--- /dev/null
@@ -0,0 +1,3 @@
+* Tue May 13 2014 Sung-jae Park <nicesj.park@samsung.com> submit/tizen/20140430.020209@1029621
+- livebox_service_mouse_event is changed.
+
index f8462ea..929d05f 100644 (file)
@@ -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
index 1d8b2e3..60e7606 100644 (file)
@@ -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)