summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-01-12 10:50:26 -0500
committerChris Michael <cp.michael@samsung.com>2018-01-12 10:50:26 -0500
commit4dfde2cd245e3d8ffcb426232fa8245d5b0b88fc (patch)
treecfdbf8cbd501f4ce2acf346fd08f456cd163f67e
parent9bc5570368c42ecedfd4bdba45f69faac787142a (diff)
elementary: Fix constant qualifer warning message
Gcc complains here due to _wl_default_seat_id_get not accepting a 'const' Evas_Object, so to avoid the warning just case it to a normal Evas_Object when passing in. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/elementary/efl_selection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_selection.c b/src/lib/elementary/efl_selection.c
index 00cfe13e1b..cbbe98286c 100644
--- a/src/lib/elementary/efl_selection.c
+++ b/src/lib/elementary/efl_selection.c
@@ -107,7 +107,8 @@ _wl_window_get(const Evas_Object *obj)
107 return win; 107 return win;
108} 108}
109 109
110int _wl_default_seat_id_get(Evas_Object *obj) 110int
111_wl_default_seat_id_get(Evas_Object *obj)
111{ 112{
112 Ecore_Wl2_Window *win = _wl_window_get(obj); 113 Ecore_Wl2_Window *win = _wl_window_get(obj);
113 Eo *seat, *parent2, *ewin; 114 Eo *seat, *parent2, *ewin;
@@ -211,7 +212,7 @@ elm_cnp_selection_get(const Evas_Object *obj, Elm_Sel_Type type,
211 if (!wdata) return EINA_FALSE; 212 if (!wdata) return EINA_FALSE;
212 213
213#ifdef HAVE_ELEMENTARY_WL2 214#ifdef HAVE_ELEMENTARY_WL2
214 seatid = _wl_default_seat_id_get(obj); 215 seatid = _wl_default_seat_id_get((Evas_Object *)obj);
215#endif 216#endif
216 wdata->udata = udata; 217 wdata->udata = udata;
217 wdata->datacb = datacb; 218 wdata->datacb = datacb;