From 749d41ee33cdb8c944a242930adaa5eb10e419a7 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Fri, 12 Jun 2015 11:19:35 +0900 Subject: do not use elm_win_profiles set at tizen 3.0 Change-Id: I600b302bb54ada04d478eca83bf47d1eaf865e15 --- configure.ac | 15 +++++++++++++++ packaging/libeom.spec | 6 +++++- src/eom.c | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7722d37..672c16c 100755 --- a/configure.ac +++ b/configure.ac @@ -57,6 +57,13 @@ AC_ARG_WITH(eom-platform, AS_HELP_STRING([--with-eom-platform=WINSYS], [eom plat AC_SUBST(EOM_PLATFORM) +AC_ARG_WITH(tizen-version, AS_HELP_STRING([--with-tizen-version=T_VERSION], [eom platform (default: TIZEN_2_X)]), + [ TIZEN_VERSION="$withval" ], + [ TIZEN_VERSION="TIZEN_2_X" ]) +AC_SUBST(TIZEN_VERSION) + + + # Checks for pkg-config packages PKG_CHECK_MODULES(DBUS, dbus-1) PKG_CHECK_MODULES(GLIB, glib-2.0 gobject-2.0) @@ -109,6 +116,14 @@ fi AM_CONDITIONAL(HAVE_EOM_PLATFORM_X11, test "x$EOM_PLATFORM" = "xX11") AM_CONDITIONAL(HAVE_EOM_PLATFORM_WAYLAND, test "x$EOM_PLATFORM" = "xWAYLAND") +if test "x$TIZEN_VERSION" = "xTIZEN_2_X"; then + AC_DEFINE(HAVE_TIZEN_2_X,1,[tizen version is 2.x.]) +fi + +AM_CONDITIONAL(HAVE_TIZEN_VERSION_2_X, test "x$TIZEN_VERSION" = "xTIZEN_2_X") + + + # Checks for header files. AC_HEADER_STDC diff --git a/packaging/libeom.spec b/packaging/libeom.spec index 51a5f91..4a1d22c 100644 --- a/packaging/libeom.spec +++ b/packaging/libeom.spec @@ -43,7 +43,11 @@ export LDFLAGS="$LDFLAGS -Wl,--hash-style=both -Wl,--as-needed" %if %{with wayland} %reconfigure --disable-dlog --disable-static --with-eom-platform=WAYLAND %else -%reconfigure --disable-dlog --disable-static --with-eom-platform=X11 +%if 0%{?tizen_version_major} == 2 +%reconfigure --disable-dlog --disable-static --with-eom-platform=X11 --with-tizen-version=TIZEN_2_X +%else +%reconfigure --disable-dlog --disable-static --with-eom-platform=X11 --with-tizen-version=TIZEN_3_X +%endif %endif make %{?_smp_mflags} diff --git a/src/eom.c b/src/eom.c index 6f08a4e..0591940 100644 --- a/src/eom.c +++ b/src/eom.c @@ -1199,8 +1199,10 @@ eom_set_output_window(eom_output_id output_id, Evas_Object *win) g_value_array_free(ret_array); if (ret == 1) { +#ifdef HAVE_TIZEN_2_X const char *profile = "desktop"; elm_win_profiles_set(win, &profile, 1); +#endif elm_win_fullscreen_set(win, EINA_TRUE); INFO("SetWindow: success\n"); _eom_mutex_unlock(); -- cgit v1.2.3