From d8574455710c9de6ce13890d916f4ae3b1cdb3cf Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sun, 15 May 2016 09:39:44 -0400 Subject: [PATCH] elementary: Conditionally define functions based on x11/wayland These functions are only used if we are compiled with X11 support, so add an #ifdef to remove it from wayland builds @fix Signed-off-by: Chris Michael --- src/lib/elementary/elm_conform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_conform.c b/src/lib/elementary/elm_conform.c index 8911b86fd3..1bd9a424fe 100644 --- a/src/lib/elementary/elm_conform.c +++ b/src/lib/elementary/elm_conform.c @@ -50,6 +50,7 @@ static const Elm_Layout_Part_Alias_Description _content_aliases[] = * ILLUME_IND="0, 0, 800, 32" * ILLUME_STK="0, 568, 800, 32" */ +#ifdef HAVE_ELEMENTARY_X static Eina_Bool _conformant_part_geometry_get_from_env(const char *part, int *sx, @@ -90,6 +91,7 @@ _conformant_part_geometry_get_from_env(const char *part, return EINA_TRUE; } +#endif static void _conformant_part_size_hints_set(Evas_Object *obj, @@ -656,6 +658,7 @@ _move_resize_cb(void *data EINA_UNUSED, _conformant_part_sizing_eval(obj, part_type); } +#ifdef HAVE_ELEMENTARY_X static void _show_region_job(void *data) { @@ -680,7 +683,6 @@ _show_region_job(void *data) } // showing the focused/important region. -#ifdef HAVE_ELEMENTARY_X static void _on_content_resize(void *data, Evas *e EINA_UNUSED,