SET(PKGS_CHECK_MODULES "glib-2.0 bundle dlog capi-appfw-application appsvc capi-appfw-app-manager ecore elementary libtzplatform-config")
IF (with_x)
- PKG_CHECK_MODULES(PKGS REQUIRED ${PKGS_CHECK_MODULES} x11)
+ PKG_CHECK_MODULES(PKGS REQUIRED ${PKGS_CHECK_MODULES} x11)
+ SET(UG_FLAG "")
ENDIF(with_x)
IF (with_wayland)
- ADD_DEFINITIONS("-DWAYLAND")
- PKG_CHECK_MODULES(PKGS REQUIRED ${PKGS_CHECK_MODULES})
+ ADD_DEFINITIONS("-DUG_WAYLAND")
+ PKG_CHECK_MODULES(PKGS REQUIRED ${PKGS_CHECK_MODULES})
+ SET(UG_FLAG "-DUG_WAYLAND")
ENDIF (with_wayland)
FOREACH(flag ${PKGS_CFLAGS})
int ugman_ug_del(ui_gadget_h ug);
int ugman_ug_del_all(void);
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
int ugman_init(Display *disp, Window xid, void *win, enum ug_option opt);
#else
int ugman_init(void *win, enum ug_option opt);
* @addtogroup UI_Gadget_For_User
* @{
*/
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
#include <X11/Xlib.h>
#endif
* ...
* \endcode
*/
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
int ug_init(Display *disp, Window xid, void *win, enum ug_option opt);
#else
int ug_init(void *win, enum ug_option opt);
#include <errno.h>
#include <glib.h>
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <Ecore_X.h>
void *win;
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
Window win_id;
Display *disp;
#endif
return 0;
}
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
static int __ug_x_get_window_property(Display *dpy, Window win, Atom atom,
Atom type, unsigned int *val,
unsigned int len)
}
#endif
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
static enum ug_event __ug_x_rotation_get(Display *dpy, Window win)
{
Window active_win;
}
if(ug_man.last_rotate_evt == UG_EVENT_NONE) {
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
ug_man.last_rotate_evt = __ug_x_rotation_get(ug_man.disp, ug_man.win_id);
#endif
}
return 0;
}
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
int ugman_init(Display *disp, Window xid, void *win, enum ug_option opt)
{
ug_man.win = win;
int ugman_init_efl(Evas_Object *win, enum ug_option opt)
{
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
Ecore_X_Window xwin = elm_win_xwindow_get(win);
if (xwin)
return ugman_init((Display *)ecore_x_display_get(), xwin, win, opt);
return ugman_ug_load(parent, name, mode, service, cbs);
}
-#ifndef WAYLAND
+#ifndef UG_WAYLAND
UG_API int ug_init(Display *disp, Window xid, void *win, enum ug_option opt)
{
if (!win || !xid || !disp) {
Version: @VERSION@
Requires: bundle capi-appfw-application
Libs: -L${libdir} -lui-gadget-1
-Cflags: -I${includedir}
+Cflags: -I${includedir} @UG_FLAG@