summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-07-15 12:46:41 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-07-15 12:46:41 +0900
commit8c74498dd4116b77ccb257501e2e745a22de0e5f (patch)
treecd3f7219682107dc31dabb46f91cd83cd0e27451
parent501ae85f873ed9345c519d6a3d589d9262aa8e8c (diff)
downloadlivebox-8c74498dd4116b77ccb257501e2e745a22de0e5f.tar.gz
livebox-8c74498dd4116b77ccb257501e2e745a22de0e5f.tar.bz2
livebox-8c74498dd4116b77ccb257501e2e745a22de0e5f.zip
Change-Id: I6cfd6d53886765d31b675892176d993a8309e272
-rw-r--r--packaging/liblivebox.spec2
-rw-r--r--src/livebox.c12
-rw-r--r--src/virtual_window.c16
3 files changed, 20 insertions, 10 deletions
diff --git a/packaging/liblivebox.spec b/packaging/liblivebox.spec
index a46f4f9..5ec837f 100644
--- a/packaging/liblivebox.spec
+++ b/packaging/liblivebox.spec
@@ -1,6 +1,6 @@
Name: liblivebox
Summary: Library for the development of a livebox
-Version: 0.4.1
+Version: 0.4.2
Release: 1
Group: HomeTF/Livebox
License: Flora License
diff --git a/src/livebox.c b/src/livebox.c
index f6a6732..adf4c25 100644
--- a/src/livebox.c
+++ b/src/livebox.c
@@ -473,7 +473,16 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff
int ret;
pkgname = provider_buffer_pkgname(buffer);
- id = provider_buffer_pkgname(buffer);
+ if (!pkgname) {
+ ErrPrint("pkgname is not valid\n");
+ return LB_STATUS_ERROR_INVALID;
+ }
+
+ id = provider_buffer_id(buffer);
+ if (!id) {
+ ErrPrint("id is not valid[%s]\n", pkgname);
+ return LB_STATUS_ERROR_INVALID;
+ }
ret = cbdata->handler(buffer, event, timestamp, x, y, cbdata->cbdata);
@@ -488,6 +497,7 @@ static inline int event_handler_wrapper(struct livebox_buffer *buffer, enum buff
case BUFFER_EVENT_SCROLL_MOVE:
case BUFFER_EVENT_SCROLL_DOWN:
case BUFFER_EVENT_UNHIGHLIGHT:
+ DbgPrint("Accessibility event: %d\n", event);
if (ret < 0)
(void)provider_send_access_status(pkgname, id, LB_ACCESS_STATUS_ERROR);
else
diff --git a/src/virtual_window.c b/src/virtual_window.c
index f350648..27ab079 100644
--- a/src/virtual_window.c
+++ b/src/virtual_window.c
@@ -77,22 +77,22 @@ static int event_handler_cb(struct livebox_buffer *handler, enum buffer_event ev
*/
switch (evt) {
case BUFFER_EVENT_ENTER:
- evas_event_feed_mouse_in(e, timestamp, NULL);
+ evas_event_feed_mouse_in(e, timestamp * 1000, NULL);
break;
case BUFFER_EVENT_LEAVE:
- evas_event_feed_mouse_out(e, timestamp, NULL);
+ evas_event_feed_mouse_out(e, timestamp * 1000, NULL);
break;
case BUFFER_EVENT_DOWN:
- evas_event_feed_mouse_in(e, timestamp, NULL);
- evas_event_feed_mouse_move(e, ix, iy, timestamp + 0.01f, NULL); /* + 0.1f just for fake event */
- evas_event_feed_mouse_down(e, 1, EVAS_BUTTON_NONE, timestamp + 0.02f, NULL); /* + 0.2f just for fake event */
+ evas_event_feed_mouse_in(e, timestamp * 1000, NULL);
+ evas_event_feed_mouse_move(e, ix, iy, (timestamp + 0.01f) * 1000, NULL); /* + 0.1f just for fake event */
+ evas_event_feed_mouse_down(e, 1, EVAS_BUTTON_NONE, (timestamp + 0.02f) * 1000, NULL); /* + 0.2f just for fake event */
break;
case BUFFER_EVENT_MOVE:
- evas_event_feed_mouse_move(e, ix, iy, timestamp, NULL);
+ evas_event_feed_mouse_move(e, ix, iy, timestamp * 1000, NULL);
break;
case BUFFER_EVENT_UP:
- evas_event_feed_mouse_up(e, 1, EVAS_BUTTON_NONE, timestamp, NULL);
- evas_event_feed_mouse_out(e, timestamp + 0.01f, NULL); /* + 0.1f just for fake event */
+ evas_event_feed_mouse_up(e, 1, EVAS_BUTTON_NONE, timestamp * 1000, NULL);
+ evas_event_feed_mouse_out(e, (timestamp + 0.01f) * 1000, NULL); /* + 0.1f just for fake event */
break;
case BUFFER_EVENT_HIGHLIGHT:
if (!parent_elm) {