summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-09-22 09:13:48 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-09-23 11:15:14 +0200
commit5884bba09694626a04c9de56229353fd76d3d945 (patch)
treed8695534031b515d56229212de09fe3348d00649 /src/lib/ecore_wl2/ecore_wl2.c
parent7d6fd1052353c113340fd9f7891cf9d301bf1e73 (diff)
ecore_wl2: introduce offer api
This commits adds api to deal with wayland offers. It also ports elm_cnp to use the new api. The selection_get and dnd_drag_get calls are replaced by simply receive data from the offer. The Offer object is now also emitted in every Enter,Motion,Drop and Leave event, so a potential user can prefetch data and display it. To finish a dnd operation positiv, the user has to call the finish call before the offer is destroyed
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 0f8850ffa0..f62dacaa42 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -28,10 +28,9 @@ EAPI int ECORE_WL2_EVENT_DATA_SOURCE_DROP = 0;
28EAPI int ECORE_WL2_EVENT_DATA_SOURCE_ACTION = 0; 28EAPI int ECORE_WL2_EVENT_DATA_SOURCE_ACTION = 0;
29EAPI int ECORE_WL2_EVENT_DATA_SOURCE_TARGET = 0; 29EAPI int ECORE_WL2_EVENT_DATA_SOURCE_TARGET = 0;
30EAPI int ECORE_WL2_EVENT_DATA_SOURCE_SEND = 0; 30EAPI int ECORE_WL2_EVENT_DATA_SOURCE_SEND = 0;
31EAPI int ECORE_WL2_EVENT_CNP_DATA_READY = 0;
32EAPI int ECORE_WL2_EVENT_DND_DATA_READY = 0;
33EAPI int ECORE_WL2_EVENT_WINDOW_CONFIGURE = 0; 31EAPI int ECORE_WL2_EVENT_WINDOW_CONFIGURE = 0;
34EAPI int ECORE_WL2_EVENT_SYNC_DONE = 0; 32EAPI int ECORE_WL2_EVENT_SYNC_DONE = 0;
33EAPI int ECORE_WL2_EVENT_OFFER_DATA_READY = 0;
35 34
36EAPI int _ecore_wl2_event_window_www = -1; 35EAPI int _ecore_wl2_event_window_www = -1;
37EAPI int _ecore_wl2_event_window_www_drag = -1; 36EAPI int _ecore_wl2_event_window_www_drag = -1;
@@ -87,10 +86,9 @@ ecore_wl2_init(void)
87 ECORE_WL2_EVENT_DATA_SOURCE_ACTION = ecore_event_type_new(); 86 ECORE_WL2_EVENT_DATA_SOURCE_ACTION = ecore_event_type_new();
88 ECORE_WL2_EVENT_DATA_SOURCE_TARGET = ecore_event_type_new(); 87 ECORE_WL2_EVENT_DATA_SOURCE_TARGET = ecore_event_type_new();
89 ECORE_WL2_EVENT_DATA_SOURCE_SEND = ecore_event_type_new(); 88 ECORE_WL2_EVENT_DATA_SOURCE_SEND = ecore_event_type_new();
90 ECORE_WL2_EVENT_CNP_DATA_READY = ecore_event_type_new();
91 ECORE_WL2_EVENT_DND_DATA_READY = ecore_event_type_new();
92 ECORE_WL2_EVENT_WINDOW_CONFIGURE = ecore_event_type_new(); 89 ECORE_WL2_EVENT_WINDOW_CONFIGURE = ecore_event_type_new();
93 ECORE_WL2_EVENT_SYNC_DONE = ecore_event_type_new(); 90 ECORE_WL2_EVENT_SYNC_DONE = ecore_event_type_new();
91 ECORE_WL2_EVENT_OFFER_DATA_READY = ecore_event_type_new();
94 _ecore_wl2_event_window_www = ecore_event_type_new(); 92 _ecore_wl2_event_window_www = ecore_event_type_new();
95 _ecore_wl2_event_window_www_drag = ecore_event_type_new(); 93 _ecore_wl2_event_window_www_drag = ecore_event_type_new();
96 } 94 }
@@ -138,10 +136,9 @@ ecore_wl2_shutdown(void)
138 ECORE_WL2_EVENT_DATA_SOURCE_ACTION = 0; 136 ECORE_WL2_EVENT_DATA_SOURCE_ACTION = 0;
139 ECORE_WL2_EVENT_DATA_SOURCE_TARGET = 0; 137 ECORE_WL2_EVENT_DATA_SOURCE_TARGET = 0;
140 ECORE_WL2_EVENT_DATA_SOURCE_SEND = 0; 138 ECORE_WL2_EVENT_DATA_SOURCE_SEND = 0;
141 ECORE_WL2_EVENT_DND_DATA_READY = 0;
142 ECORE_WL2_EVENT_CNP_DATA_READY = 0;
143 ECORE_WL2_EVENT_WINDOW_CONFIGURE = 0; 139 ECORE_WL2_EVENT_WINDOW_CONFIGURE = 0;
144 ECORE_WL2_EVENT_SYNC_DONE = 0; 140 ECORE_WL2_EVENT_SYNC_DONE = 0;
141 ECORE_WL2_EVENT_OFFER_DATA_READY = 0;
145 142
146 /* shutdown Ecore_Event */ 143 /* shutdown Ecore_Event */
147 ecore_event_shutdown(); 144 ecore_event_shutdown();