adapt to new win center trap in 1.13 efl

also require 1.13 now as we want he win trap h/v info
This commit is contained in:
Carsten Haitzler 2015-02-06 11:37:52 +09:00
parent ea230eeaf5
commit 6ef73fb3f0
2 changed files with 4 additions and 3 deletions

View File

@ -92,7 +92,7 @@ extern char **environ;
AC_DEFINE(HAVE_ENVIRON, 1, [Have environ var])
])
efl_version="1.12.99"
efl_version="1.13.0"
AC_SUBST(efl_version)
AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h])

View File

@ -155,11 +155,12 @@ _e_elm_win_trap_resize(void *data, Evas_Object *o __UNUSED__, int w, int h)
}
static Eina_Bool
_e_elm_win_trap_center(void *data, Evas_Object *o __UNUSED__)
_e_elm_win_trap_center(void *data, Evas_Object *o __UNUSED__, Eina_Bool h, Eina_Bool v)
{
Elm_Win_Trap_Ctx *ctx = data;
EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, EINA_TRUE);
ctx->centered = ctx->placed = 1;
ctx->centered = h | v;
ctx->placed = 1;
if (!ctx->client) return EINA_FALSE;
if (ctx->centered) e_comp_object_util_center(ctx->client->frame);
return EINA_FALSE;