livebox_service_mouse_event API is changed.
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 9 May 2014 01:42:12 +0000 (10:42 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 9 May 2014 01:42:12 +0000 (10:42 +0900)
it should be called when the box size is changed.

Change-Id: Ifb27b67fdedb8172df33aaa71783c0a8db6e3e78

packaging/liblivebox-viewer.spec
src/livebox.c

index 18ad12f..c462bc9 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: HomeTF/Livebox
 License: Flora
index 1d31cf1..1eed536 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;
@@ -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)