AUX_SOURCE_DIRECTORY(src SRCS)
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
-SET(PKGS_CHECK_MODULES "glib-2.0 bundle dlog capi-appfw-application appsvc capi-appfw-app-manager ecore dbus-glib-1 elementary pkgmgr-info libtzplatform-config")
+SET(PKGS_CHECK_MODULES "glib-2.0 bundle dlog capi-appfw-application appsvc capi-appfw-app-manager ecore dbus-glib-1 elementary pkgmgr-info libtzplatform-config ecore-wl2")
PKG_CHECK_MODULES(PKGS REQUIRED ${PKGS_CHECK_MODULES})
FOREACH(flag ${PKGS_CFLAGS})
SET(CFLAGS "${CFLAGS} ${flag}")
BuildRequires: pkgconfig(pkgmgr-info)
BuildRequires: cmake
BuildRequires: edje-bin
-BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: pkgconfig(libtzplatform-config)
+BuildRequires: pkgconfig(ecore-wl2)
%description
UI gadget library (development headers)
cp %{SOURCE1001} .
%build
+export CFLAGS+=" -DEFL_BETA_API_SUPPORT "
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%cmake -DFULLVER=%{version} \
-DMAJORVER=${MAJORVER} \
#include <errno.h>
#include <glib.h>
#include <Elementary.h>
-#include <Ecore_Wayland.h>
+#include <Ecore_Wl2.h>
#include <Ecore.h>
#include "ug.h"
static void _ugman_enable_indicator(Evas_Object *win, int enable)
{
- Ecore_Wl_Window *wlwin = elm_win_wl_window_get(win);
+ /*
+ * Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(win));
+ * Ecore_Wl2_Window *wlwin = ecore_evas_wayland2_window_get(ee);
+ */
+ Ecore_Wl2_Window *wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(win);
if (enable == 1)
- ecore_wl_window_indicator_state_set(wlwin, ECORE_WL_INDICATOR_STATE_ON);
+ ecore_wl2_window_indicator_state_set(wlwin, ECORE_WL2_INDICATOR_STATE_ON);
else
- ecore_wl_window_indicator_state_set(wlwin, ECORE_WL_INDICATOR_STATE_OFF);
+ ecore_wl2_window_indicator_state_set(wlwin, ECORE_WL2_INDICATOR_STATE_OFF);
}
static int _ugman_get_indicator_state(Evas_Object *win)
{
- Ecore_Wl_Window *wlwin = elm_win_wl_window_get(win);
- Ecore_Wl_Indicator_State state;
+ /*
+ * Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(win));
+ * Ecore_Wl2_Window *wlwin = ecore_evas_wayland2_window_get(ee);
+ */
+ Ecore_Wl2_Window *wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(win);
+ Ecore_Wl2_Indicator_State state;
int ret;
- state = ecore_wl_window_indicator_state_get(wlwin);
- if (state == ECORE_WL_INDICATOR_STATE_OFF)
+ state = ecore_wl2_window_indicator_state_get(wlwin);
+ if (state == ECORE_WL2_INDICATOR_STATE_OFF)
ret = 0;
- else if (state == ECORE_WL_INDICATOR_STATE_ON)
+ else if (state == ECORE_WL2_INDICATOR_STATE_ON)
ret = 1;
else
ret = -1;