* 1.7.5 release
+2013-01-14 Daniel Willmann
+
+ * Backport r82767, r82770
+ * edje: Fix off-by-one errors when using alloca in various functions
+
+2013-01-29 Carsten Haitzler (The Rasterman)
+
+ * Fix cache miss bug when edje cache hash is null, but cache
+ list may have entries.
+
+2013-02-07 WooHyun Jung.
+
+ * Backport from r83700 in trunk. Checking walking_callbacks for not removing patterns which are still used.
+
+2013-02-17 Mike Blumenkrantz
+
+ * fix anchor clicked mouse signals for selection-enabled entries
+
+2013-02-18 Carsten Haitzler (The Rasterman)
+
+ * Fix edje edje_color_class_list() and edje_text_class_list() to
+ look at the correct hashes when returning.
+
+2013-02-18 Jihoon Kim (jihoon)
+
+ * edje entry : Fix bug candidate word couldn't be selected with up/down key in the preedit status
+
+2013-02-20 Cedric Bail
+
+ * report file not found properly.
+
+2013-02-28 Mike Blumenkrantz
+
+ * fix custom states for SPACER parts
+ * fix program filters
+
+2013-03-22 Jonas Gastal
+
+ * Fix CURRENT for moving objects.
+
+2013-04-04 Rafael Antognolli
+
+ * 1.7.6 release
+
+2013-05-08 Mike Blumenkrantz
+
+ * Edje: fix custom states for proxy parts
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
DATA = $(pkgconfig_DATA)
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
cd $(top_builddir) && $(SHELL) ./config.status $@
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
-rm -f libtool config.lt
install-pkgconfigDATA: $(pkgconfig_DATA)
@$(NORMAL_INSTALL)
- test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
*.zip*) \
unzip $(distdir).zip ;;\
esac
- chmod -R a-w $(distdir); chmod a+w $(distdir)
+ chmod -R a-w $(distdir); chmod u+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
-Edje 1.7.5
+Edje 1.7.7
+
+Changes since Edje 1.7.6:
+-------------------------
+
+Fixes:
+ * fix custom states for proxy parts
+
+Edje 1.7.6
+
+Changes since Edje 1.7.5:
+-------------------------
+
+Fixes:
+ * Fix cache miss when active edje hash is empty.
+ * Checking walking_callbacks for not removing patterns which are still used.
+ * fix anchor clicked mouse signals for selection-enabled entries
+ * Fix edje_color_class_list() and edje_text_class_list() to look at right hashes.
+ * Fix bug candidate word couldn't be selected with up/down key in the preedit status
+ * Report file not found properly.
+ * fix custom states for SPACER parts
+ * fix program filters
+ * Fix CURRENT for moving objects.
Changes since Edje 1.7.4:
-------------------------
* Backport from 78587 in trunk.
* Fix inheriting groups with programs that have after programs where after programs are duplicated in the list.
-Edje 1.7.3
-
Changes since Edje 1.7.2:
-------------------------
* fix to not segv on inheriting group lookups
* fix build on Solaris 11
-Edje 1.7.1
-
Changes since Edje 1.7.0:
-------------------------
Fixes:
* Fix edje_*scale_set() on sub-group.
-Edje 1.7.0
-
Changes since Edje 1.2.0:
-------------------------
* Properly destroy color_class and text_class on an Edje_Object.
* Stop leaking memory on edje block error during signal emit.
-Edje 1.2.0
-
Changes since Edje 1.1.0:
-------------------------
-# generated automatically by aclocal 1.11.3 -*- Autoconf -*-
+# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
# ----------------------------------
AC_DEFUN([PKG_PROG_PKG_CONFIG],
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
-m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
-m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
pkg_cv_[]$1="$$1"
elif test -n "$PKG_CONFIG"; then
PKG_CHECK_EXISTS([$3],
- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes ],
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
[pkg_failed=yes])
else
pkg_failed=untried
AC_MSG_RESULT([no])
_PKG_SHORT_ERRORS_SUPPORTED
if test $_pkg_short_errors_supported = yes; then
- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
else
- $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
-_PKG_TEXT])[]dnl
+_PKG_TEXT])
])
elif test $pkg_failed = untried; then
AC_MSG_RESULT([no])
_PKG_TEXT
-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
])
else
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
[am__api_version='1.11'
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
dnl require some minimum version. Point them to the right macro.
-m4_if([$1], [1.11.3], [],
+m4_if([$1], [1.11.6], [],
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
])
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-[AM_AUTOMAKE_VERSION([1.11.3])dnl
+[AM_AUTOMAKE_VERSION([1.11.6])dnl
m4_ifndef([AC_AUTOCONF_VERSION],
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
#! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
-scriptversion=2012-01-04.17; # UTC
+scriptversion=2012-03-05.13; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009, 2010, 2012 Free
# Software Foundation, Inc.
esac
}
+# func_cl_dashL linkdir
+# Make cl look for libraries in LINKDIR
+func_cl_dashL ()
+{
+ func_file_conv "$1"
+ if test -z "$lib_path"; then
+ lib_path=$file
+ else
+ lib_path="$lib_path;$file"
+ fi
+ linker_opts="$linker_opts -LIBPATH:$file"
+}
+
+# func_cl_dashl library
+# Do a library search-path lookup for cl
+func_cl_dashl ()
+{
+ lib=$1
+ found=no
+ save_IFS=$IFS
+ IFS=';'
+ for dir in $lib_path $LIB
+ do
+ IFS=$save_IFS
+ if $shared && test -f "$dir/$lib.dll.lib"; then
+ found=yes
+ lib=$dir/$lib.dll.lib
+ break
+ fi
+ if test -f "$dir/$lib.lib"; then
+ found=yes
+ lib=$dir/$lib.lib
+ break
+ fi
+ done
+ IFS=$save_IFS
+
+ if test "$found" != yes; then
+ lib=$lib.lib
+ fi
+}
+
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
;;
esac
;;
+ -I)
+ eat=1
+ func_file_conv "$2" mingw
+ set x "$@" -I"$file"
+ shift
+ ;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
+ -l)
+ eat=1
+ func_cl_dashl "$2"
+ set x "$@" "$lib"
+ shift
+ ;;
-l*)
- lib=${1#-l}
- found=no
- save_IFS=$IFS
- IFS=';'
- for dir in $lib_path $LIB
- do
- IFS=$save_IFS
- if $shared && test -f "$dir/$lib.dll.lib"; then
- found=yes
- set x "$@" "$dir/$lib.dll.lib"
- break
- fi
- if test -f "$dir/$lib.lib"; then
- found=yes
- set x "$@" "$dir/$lib.lib"
- break
- fi
- done
- IFS=$save_IFS
-
- test "$found" != yes && set x "$@" "$lib.lib"
+ func_cl_dashl "${1#-l}"
+ set x "$@" "$lib"
shift
;;
+ -L)
+ eat=1
+ func_cl_dashL "$2"
+ ;;
-L*)
- func_file_conv "${1#-L}"
- if test -z "$lib_path"; then
- lib_path=$file
- else
- lib_path="$lib_path;$file"
- fi
- linker_opts="$linker_opts -LIBPATH:$file"
+ func_cl_dashL "${1#-L}"
;;
-static)
shared=false
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.68 for edje 1.7.5.
+# Generated by GNU Autoconf 2.68 for edje 1.7.7.
#
# Report bugs to <enlightenment-devel@lists.sourceforge.net>.
#
# Identity of this package.
PACKAGE_NAME='edje'
PACKAGE_TARNAME='edje'
-PACKAGE_VERSION='1.7.5'
-PACKAGE_STRING='edje 1.7.5'
+PACKAGE_VERSION='1.7.7'
+PACKAGE_STRING='edje 1.7.7'
PACKAGE_BUGREPORT='enlightenment-devel@lists.sourceforge.net'
PACKAGE_URL=''
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures edje 1.7.5 to adapt to many kinds of systems.
+\`configure' configures edje 1.7.7 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of edje 1.7.5:";;
+ short | recursive ) echo "Configuration of edje 1.7.7:";;
esac
cat <<\_ACEOF
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-edje configure 1.7.5
+edje configure 1.7.7
generated by GNU Autoconf 2.68
Copyright (C) 2010 Free Software Foundation, Inc.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by edje $as_me 1.7.5, which was
+It was created by edje $as_me 1.7.7, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ $0 $@
# Define the identity of the package.
PACKAGE='edje'
- VERSION='1.7.5'
+ VERSION='1.7.7'
cat >>confdefs.h <<_ACEOF
lt_cv_deplibs_check_method=pass_all
;;
-netbsd* | netbsdelf*-gnu)
+netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
else
openbsd*)
with_gnu_ld=no
;;
- linux* | k*bsd*-gnu | gnu*)
- link_all_deplibs=no
- ;;
esac
ld_shlibs=yes
fi
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
if test "$aix_use_runtimelinking" = yes; then
shared_flag="$shared_flag "'${wl}-G'
fi
- link_all_deplibs=no
else
# not using gcc
if test "$host_cpu" = ia64; then
link_all_deplibs=yes
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
else
# before this can be enabled.
hardcode_into_libs=yes
+ # Add ABI-specific directories to the system library path.
+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
+
# Append ld.so.conf contents to the search path
if test -f /etc/ld.so.conf; then
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
+
fi
# We used to test for /lib/ld.so.1 and disable shared libraries on
dynamic_linker='GNU/Linux ld.so'
;;
-netbsdelf*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='NetBSD ld.elf_so'
- ;;
-
netbsd*)
version_type=sunos
need_lib_prefix=no
cat >>confdefs.h <<_ACEOF
-#define VMIC 5
+#define VMIC 7
_ACEOF
#define VREV 0
_ACEOF
-version_info="8:5:7"
+version_info="8:7:7"
release_info=""
-
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
pkg_cv_EVIL_CFLAGS="$EVIL_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "evil >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "evil >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EVIL_CFLAGS=`$PKG_CONFIG --cflags "evil >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EVIL_LIBS="$EVIL_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "evil >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"evil >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "evil >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EVIL_LIBS=`$PKG_CONFIG --libs "evil >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "evil >= 1.7.5" 2>&1`
+ EVIL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "evil >= 1.7.7" 2>&1`
else
- EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "evil >= 1.7.5" 2>&1`
+ EVIL_PKG_ERRORS=`$PKG_CONFIG --print-errors "evil >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EVIL_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (evil >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (evil >= 1.7.7) were not met:
$EVIL_PKG_ERRORS
Alternatively, you may set the environment variables EVIL_CFLAGS
and EVIL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EVIL_CFLAGS=$pkg_cv_EVIL_CFLAGS
EVIL_LIBS=$pkg_cv_EVIL_LIBS
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua51 >= 5.1.0" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua51 >= 5.1.0" 2>&1`
else
- LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua51 >= 5.1.0" 2>&1`
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua51 >= 5.1.0" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$LUA_PKG_ERRORS" >&5
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_MINIMAL_CFLAGS=`$PKG_CONFIG --cflags "
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_MINIMAL_LIBS=`$PKG_CONFIG --libs "
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- MINIMAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
- eina >= 1.7.5
- eet >= 1.7.5
+ MINIMAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
+ eina >= 1.7.7
+ eet >= 1.7.7
" 2>&1`
else
- MINIMAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
- eina >= 1.7.5
- eet >= 1.7.5
+ MINIMAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "
+ eina >= 1.7.7
+ eet >= 1.7.7
" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$MINIMAL_PKG_ERRORS" >&5
as_fn_error $? "Package requirements (
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
) were not met:
$MINIMAL_PKG_ERRORS
Alternatively, you may set the environment variables MINIMAL_CFLAGS
and MINIMAL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
MINIMAL_CFLAGS=$pkg_cv_MINIMAL_CFLAGS
MINIMAL_LIBS=$pkg_cv_MINIMAL_LIBS
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_EDJE_CFLAGS=`$PKG_CONFIG --cflags "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_EDJE_LIBS=`$PKG_CONFIG --libs "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ EDJE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
" 2>&1`
else
- EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ EDJE_PKG_ERRORS=`$PKG_CONFIG --print-errors "
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_PKG_ERRORS" >&5
as_fn_error $? "Package requirements (
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
) were not met:
$EDJE_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_CFLAGS
and EDJE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_CFLAGS=$pkg_cv_EDJE_CFLAGS
EDJE_LIBS=$pkg_cv_EDJE_LIBS
EDJE_LIBS="${EDJE_LIBS} ${LUA_LIBS} ${lua_libs}"
EDJE_CFLAGS="${EDJE_CFLAGS} ${LUA_CFLAGS}"
-requirement_edje="embryo >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5 ${requirement_edje}"
+requirement_edje="embryo >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7 ${requirement_edje}"
requirement_edje="${requirement_lua} ${requirement_edje}"
have_ecore_imf="no"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_ECORE_IMF_CFLAGS=`$PKG_CONFIG --cflags "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
\""; } >&5
($PKG_CONFIG --exists --print-errors "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_ECORE_IMF_LIBS=`$PKG_CONFIG --libs "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
" 2>&1`
else
- ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ECORE_IMF_PKG_ERRORS=`$PKG_CONFIG --print-errors "
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
$as_echo "#define HAVE_ECORE_IMF 1" >>confdefs.h
have_ecore_imf="yes"
- requirement_edje="ecore-imf-evas >= 1.7.5 ecore-imf >= 1.7.5 ${requirement_edje}"
+ requirement_edje="ecore-imf-evas >= 1.7.7 ecore-imf >= 1.7.7 ${requirement_edje}"
fi
pkg_cv_EIO_CFLAGS="$EIO_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eio >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "eio >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eio >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "eio >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EIO_CFLAGS=`$PKG_CONFIG --cflags "eio >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EIO_CFLAGS=`$PKG_CONFIG --cflags "eio >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EIO_LIBS="$EIO_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eio >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "eio >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"eio >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "eio >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EIO_LIBS=`$PKG_CONFIG --libs "eio >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EIO_LIBS=`$PKG_CONFIG --libs "eio >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "eio >= 1.7.5" 2>&1`
+ EIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eio >= 1.7.7" 2>&1`
else
- EIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "eio >= 1.7.5" 2>&1`
+ EIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "eio >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EIO_PKG_ERRORS" >&5
$as_echo "#define HAVE_EIO 1" >>confdefs.h
have_eio="yes"
- requirement_edje="eio >= 1.7.5 ${requirement_edje}"
+ requirement_edje="eio >= 1.7.7 ${requirement_edje}"
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1.0.21" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1.0.21" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1.0.21" 2>&1`
+ SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sndfile >= 1.0.21" 2>&1`
else
- SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1.0.21" 2>&1`
+ SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors "sndfile >= 1.0.21" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$SNDFILE_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_REMIX_CFLAGS=`$PKG_CONFIG --cflags "remix >= 0.2.4" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_REMIX_LIBS=`$PKG_CONFIG --libs "remix >= 0.2.4" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- REMIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "remix >= 0.2.4" 2>&1`
+ REMIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "remix >= 0.2.4" 2>&1`
else
- REMIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "remix >= 0.2.4" 2>&1`
+ REMIX_PKG_ERRORS=`$PKG_CONFIG --print-errors "remix >= 0.2.4" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$REMIX_PKG_ERRORS" >&5
vorbis >= 1.2.3
vorbisenc >= 1.2.3
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
vorbis >= 1.2.3
vorbisenc >= 1.2.3
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
+ VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
ogg >= 1.1.4
vorbis >= 1.2.3
vorbisenc >= 1.2.3
" 2>&1`
else
- VORBISENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
+ VORBISENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "
ogg >= 1.1.4
vorbis >= 1.2.3
vorbisenc >= 1.2.3
pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "
alsa >= 1.0.21
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "
alsa >= 1.0.21
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
+ ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
alsa >= 1.0.21
" 2>&1`
else
- ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
+ ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "
alsa >= 1.0.21
" 2>&1`
fi
pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "
flac >= 1.2.1
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "
flac >= 1.2.1
" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
+ FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
flac >= 1.2.1
" 2>&1`
else
- FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
+ FLAC_PKG_ERRORS=`$PKG_CONFIG --print-errors "
flac >= 1.2.1
" 2>&1`
fi
pkg_cv_EDJE_CC_CFLAGS="$EDJE_CC_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_CC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_CC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_CC_LIBS="$EDJE_CC_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_CC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_CC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5" 2>&1`
+ EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7" 2>&1`
else
- EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5" 2>&1`
+ EDJE_CC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_CC_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7) were not met:
$EDJE_CC_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_CC_CFLAGS
and EDJE_CC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_CC_CFLAGS=$pkg_cv_EDJE_CC_CFLAGS
EDJE_CC_LIBS=$pkg_cv_EDJE_CC_LIBS
pkg_cv_EDJE_DECC_CFLAGS="$EDJE_DECC_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_DECC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_DECC_CFLAGS=`$PKG_CONFIG --cflags "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_DECC_LIBS="$EDJE_DECC_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_DECC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_DECC_LIBS=`$PKG_CONFIG --libs "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7" 2>&1`
else
- EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_DECC_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_DECC_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7) were not met:
$EDJE_DECC_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_DECC_CFLAGS
and EDJE_DECC_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_DECC_CFLAGS=$pkg_cv_EDJE_DECC_CFLAGS
EDJE_DECC_LIBS=$pkg_cv_EDJE_DECC_LIBS
pkg_cv_EDJE_PLAYER_CFLAGS="$EDJE_PLAYER_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_PLAYER_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_PLAYER_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_PLAYER_LIBS="$EDJE_PLAYER_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_PLAYER_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_PLAYER_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
else
- EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_PLAYER_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_PLAYER_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7) were not met:
$EDJE_PLAYER_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_PLAYER_CFLAGS
and EDJE_PLAYER_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_PLAYER_CFLAGS=$pkg_cv_EDJE_PLAYER_CFLAGS
EDJE_PLAYER_LIBS=$pkg_cv_EDJE_PLAYER_LIBS
pkg_cv_EDJE_INSPECTOR_CFLAGS="$EDJE_INSPECTOR_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_INSPECTOR_LIBS="$EDJE_INSPECTOR_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
else
- EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_INSPECTOR_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7) were not met:
$EDJE_INSPECTOR_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_INSPECTOR_CFLAGS
and EDJE_INSPECTOR_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_INSPECTOR_CFLAGS=$pkg_cv_EDJE_INSPECTOR_CFLAGS
EDJE_INSPECTOR_LIBS=$pkg_cv_EDJE_INSPECTOR_LIBS
pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS="$EDJE_EXTERNAL_INSPECTOR_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS=`$PKG_CONFIG --cflags "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS="$EDJE_EXTERNAL_INSPECTOR_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS=`$PKG_CONFIG --libs "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
else
- EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5" 2>&1`
+ EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS" >&5
- as_fn_error $? "Package requirements (ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5) were not met:
+ as_fn_error $? "Package requirements (ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7) were not met:
$EDJE_EXTERNAL_INSPECTOR_PKG_ERRORS
Alternatively, you may set the environment variables EDJE_EXTERNAL_INSPECTOR_CFLAGS
and EDJE_EXTERNAL_INSPECTOR_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details." "$LINENO" 5
+
elif test $pkg_failed = untried; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See \`config.log' for more details" "$LINENO" 5; }
+
else
EDJE_EXTERNAL_INSPECTOR_CFLAGS=$pkg_cv_EDJE_EXTERNAL_INSPECTOR_CFLAGS
EDJE_EXTERNAL_INSPECTOR_LIBS=$pkg_cv_EDJE_EXTERNAL_INSPECTOR_LIBS
pkg_cv_EDJE_WATCH_CFLAGS="$EDJE_WATCH_CFLAGS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_WATCH_CFLAGS=`$PKG_CONFIG --cflags "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_WATCH_CFLAGS=`$PKG_CONFIG --cflags "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
pkg_cv_EDJE_WATCH_LIBS="$EDJE_WATCH_LIBS"
elif test -n "$PKG_CONFIG"; then
if test -n "$PKG_CONFIG" && \
- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5\""; } >&5
- ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5") 2>&5
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7") 2>&5
ac_status=$?
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
- pkg_cv_EDJE_WATCH_LIBS=`$PKG_CONFIG --libs "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
+ pkg_cv_EDJE_WATCH_LIBS=`$PKG_CONFIG --libs "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7" 2>/dev/null`
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- EDJE_WATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5" 2>&1`
+ EDJE_WATCH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7" 2>&1`
else
- EDJE_WATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5" 2>&1`
+ EDJE_WATCH_PKG_ERRORS=`$PKG_CONFIG --print-errors "ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$EDJE_WATCH_PKG_ERRORS" >&5
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; then
pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.5" 2>/dev/null`
- test "x$?" != "x0" && pkg_failed=yes
else
pkg_failed=yes
fi
_pkg_short_errors_supported=no
fi
if test $_pkg_short_errors_supported = yes; then
- CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.5" 2>&1`
+ CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "check >= 0.9.5" 2>&1`
else
- CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.5" 2>&1`
+ CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors "check >= 0.9.5" 2>&1`
fi
# Put the nasty error message in config.log where it belongs
echo "$CHECK_PKG_ERRORS" >&5
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by edje $as_me 1.7.5, which was
+This file was extended by edje $as_me 1.7.7, which was
generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-edje config.status 1.7.5
+edje config.status 1.7.7
configured by $0, generated by GNU Autoconf 2.68,
with options \\"\$ac_cs_config\\"
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_maj], [1])
m4_define([v_min], [7])
-m4_define([v_mic], [5])
-m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v '\(export\|Unversioned directory\)' || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
-m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
+m4_define([v_mic], [7])
+m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
##-- When released, remove the dnl on the below line
m4_undefine([v_rev])
##-- When doing snapshots - change soname. remove dnl on below line
EFL_EDJE_BUILD=""
case "$host_os" in
mingw*)
- PKG_CHECK_MODULES([EVIL], [evil >= 1.7.5])
+ PKG_CHECK_MODULES([EVIL], [evil >= 1.7.7])
AC_DEFINE([HAVE_EVIL], [1], [Set to 1 if Evil library is installed])
requirement_edje="evil ${requirement_edje}"
EFL_EDJE_BUILD="-DEFL_EDJE_BUILD"
PKG_CHECK_MODULES([MINIMAL],
[
- eina >= 1.7.5
- eet >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
])
PKG_CHECK_MODULES([EDJE],
[
- eina >= 1.7.5
- eet >= 1.7.5
- evas >= 1.7.5
- ecore >= 1.7.5
- ecore-evas >= 1.7.5
- ecore-file >= 1.7.5
- ecore-input >= 1.7.5
- embryo >= 1.7.5
+ eina >= 1.7.7
+ eet >= 1.7.7
+ evas >= 1.7.7
+ ecore >= 1.7.7
+ ecore-evas >= 1.7.7
+ ecore-file >= 1.7.7
+ ecore-input >= 1.7.7
+ embryo >= 1.7.7
])
EDJE_LIBS="${EDJE_LIBS} ${LUA_LIBS} ${lua_libs}"
EDJE_CFLAGS="${EDJE_CFLAGS} ${LUA_CFLAGS}"
-requirement_edje="embryo >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5 ${requirement_edje}"
+requirement_edje="embryo >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7 ${requirement_edje}"
requirement_edje="${requirement_lua} ${requirement_edje}"
have_ecore_imf="no"
PKG_CHECK_MODULES([ECORE_IMF],
[
- ecore-imf >= 1.7.5
- ecore-imf-evas >= 1.7.5
+ ecore-imf >= 1.7.7
+ ecore-imf-evas >= 1.7.7
],
[
AC_DEFINE([HAVE_ECORE_IMF], [1], [Input Method Support for Edje Entry])
have_ecore_imf="yes"
- requirement_edje="ecore-imf-evas >= 1.7.5 ecore-imf >= 1.7.5 ${requirement_edje}"
+ requirement_edje="ecore-imf-evas >= 1.7.7 ecore-imf >= 1.7.7 ${requirement_edje}"
],
[have_ecore_imf="no"])
PKG_CHECK_MODULES([EIO],
- [eio >= 1.7.5],
+ [eio >= 1.7.7],
[
AC_DEFINE([HAVE_EIO], [1], [Eio is available for monitoring file assynchronously])
have_eio="yes"
- requirement_edje="eio >= 1.7.5 ${requirement_edje}"
+ requirement_edje="eio >= 1.7.7 ${requirement_edje}"
],
[have_eio="no"])
if test "x${have_edje_cc}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_CC],
- [ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.6.0 eina >= 1.7.5])
+ [ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.6.0 eina >= 1.7.7])
EDJE_CC_LIBS="${EDJE_CC_LIBS} ${LUA_LIBS} ${lua_libs}"
fi
if test "x${have_edje_decc}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_DECC],
- [ecore-file >= 1.7.5 ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eet >= 1.7.5 eina >= 1.7.5])
+ [ecore-file >= 1.7.7 ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eet >= 1.7.7 eina >= 1.7.7])
fi
if test "x${have_edje_player}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_PLAYER],
- [ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5])
+ [ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7])
fi
if test "x${have_edje_inspector}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_INSPECTOR],
- [ecore-evas >= 1.7.5 ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5])
+ [ecore-evas >= 1.7.7 ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7])
fi
if test "x${have_edje_external_inspector}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_EXTERNAL_INSPECTOR],
- [ecore >= 1.7.5 evas >= 1.7.5 eina >= 1.7.5])
+ [ecore >= 1.7.7 evas >= 1.7.7 eina >= 1.7.7])
fi
if test "x${have_edje_watch}" = "xyes" ; then
PKG_CHECK_MODULES([EDJE_WATCH],
- [ecore >= 1.7.5 eina >= 1.7.5 eio >= 1.7.5],
+ [ecore >= 1.7.7 eina >= 1.7.7 eio >= 1.7.7],
[have_edje_watch="yes"],
[have_edje_watch="no"])
fi
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-rm -rf .libs _libs
install-mimeDATA: $(mime_DATA)
@$(NORMAL_INSTALL)
- test -z "$(mimedir)" || $(MKDIR_P) "$(DESTDIR)$(mimedir)"
@list='$(mime_DATA)'; test -n "$(mimedir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(mimedir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(mimedir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-rm -rf .libs _libs
install-incDATA: $(inc_DATA)
@$(NORMAL_INSTALL)
- test -z "$(incdir)" || $(MKDIR_P) "$(DESTDIR)$(incdir)"
@list='$(inc_DATA)'; test -n "$(incdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(incdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(incdir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
#! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
-scriptversion=2011-12-04.11; # UTC
+scriptversion=2012-03-27.16; # UTC
# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010,
-# 2011 Free Software Foundation, Inc.
+# 2011, 2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
case $1 in
'')
- echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
Environment variables:
depmode Dependency tracking mode.
- source Source file read by `PROGRAMS ARGS'.
- object Object file output by `PROGRAMS ARGS'.
+ source Source file read by 'PROGRAMS ARGS'.
+ object Object file output by 'PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
tmpdepfile Temporary file to use when outputting dependencies.
;;
esac
+# A tabulation character.
+tab=' '
+# A newline character.
+nl='
+'
+
if test -z "$depmode" || test -z "$source" || test -z "$object"; then
echo "depcomp: Variables source, object and depmode must be set" 1>&2
exit 1
depmode=msvc7
fi
+if test "$depmode" = xlc; then
+ # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations.
+ gccflag=-qmakedep=gcc,-MF
+ depmode=gcc
+fi
+
case "$depmode" in
gcc3)
## gcc 3 implements dependency tracking that does exactly what
## The second -e expression handles DOS-style file names with drive letters.
sed -e 's/^[^:]*: / /' \
-e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the `deleted header file' problem.
+## This next piece of magic avoids the "deleted header file" problem.
## The problem is that when a header file which appears in a .P file
## is deleted, the dependency causes make to die (because there is
## typically no way to rebuild the header). We avoid this by adding
## dummy dependencies for each header file. Too bad gcc doesn't do
## this for us directly.
- tr ' ' '
-' < "$tmpdepfile" |
-## Some versions of gcc put a space before the `:'. On the theory
+ tr ' ' "$nl" < "$tmpdepfile" |
+## Some versions of gcc put a space before the ':'. On the theory
## that the space means something, we add a space to the output as
## well. hp depmode also adds that space, but also prefixes the VPATH
## to the object. Take care to not repeat it in the output.
# clever and replace this with sed code, as IRIX sed won't handle
# lines with more than a fixed number of characters (4096 in
# IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
- # the IRIX cc adds comments like `#:fec' to the end of the
+ # the IRIX cc adds comments like '#:fec' to the end of the
# dependency line.
- tr ' ' '
-' < "$tmpdepfile" \
+ tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
- tr '
-' ' ' >> "$depfile"
+ tr "$nl" ' ' >> "$depfile"
echo >> "$depfile"
# The second pass generates a dummy entry for each header file.
- tr ' ' '
-' < "$tmpdepfile" \
+ tr ' ' "$nl" < "$tmpdepfile" \
| sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
>> "$depfile"
else
rm -f "$tmpdepfile"
;;
+xlc)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
aix)
# The C for AIX Compiler uses -M and outputs the dependencies
# in a .u file. In older versions, this file always lives in the
- # current directory. Also, the AIX compiler puts `$object:' at the
+ # current directory. Also, the AIX compiler puts '$object:' at the
# start of each line; $object doesn't have directory information.
# Version 6 uses the directory in both cases.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test -f "$tmpdepfile" && break
done
if test -f "$tmpdepfile"; then
- # Each line is of the form `foo.o: dependent.h'.
+ # Each line is of the form 'foo.o: dependent.h'.
# Do two passes, one to just change these to
- # `$object: dependent.h' and one to simply `dependent.h:'.
+ # '$object: dependent.h' and one to simply 'dependent.h:'.
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
- # That's a tab and a space in the [].
- sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
# The sourcefile does not contain any dependencies, so just
# store a dummy comment line, to avoid errors with the Makefile
;;
icc)
- # Intel's C compiler understands `-MD -MF file'. However on
- # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'.
+ # However on
+ # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c
# ICC 7.0 will fill foo.d with something like
# foo.o: sub/foo.c
# foo.o: sub/foo.h
- # which is wrong. We want:
+ # which is wrong. We want
# sub/foo.o: sub/foo.c
# sub/foo.o: sub/foo.h
# sub/foo.c:
# sub/foo.h:
# ICC 7.1 will output
# foo.o: sub/foo.c sub/foo.h
- # and will wrap long lines using \ :
+ # and will wrap long lines using '\':
# foo.o: sub/foo.c ... \
# sub/foo.h ... \
# ...
-
+ # tcc 0.9.26 (FIXME still under development at the moment of writing)
+ # will emit a similar output, but also prepend the continuation lines
+ # with horizontal tabulation characters.
"$@" -MD -MF "$tmpdepfile"
stat=$?
if test $stat -eq 0; then :
exit $stat
fi
rm -f "$depfile"
- # Each line is of the form `foo.o: dependent.h',
- # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+ # Each line is of the form 'foo.o: dependent.h',
+ # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'.
# Do two passes, one to just change these to
- # `$object: dependent.h' and one to simply `dependent.h:'.
- sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
- # Some versions of the HPUX 10.20 sed can't process this invocation
- # correctly. Breaking it into two sed invocations is a workaround.
- sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
- sed -e 's/$/ :/' >> "$depfile"
+ # '$object: dependent.h' and one to simply 'dependent.h:'.
+ sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \
+ < "$tmpdepfile" > "$depfile"
+ sed '
+ s/[ '"$tab"'][ '"$tab"']*/ /g
+ s/^ *//
+ s/ *\\*$//
+ s/^[^:]*: *//
+ /^$/d
+ /:$/d
+ s/$/ :/
+ ' < "$tmpdepfile" >> "$depfile"
rm -f "$tmpdepfile"
;;
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
- # Add `dependent.h:' lines.
+ # Add 'dependent.h:' lines.
sed -ne '2,${
s/^ *//
s/ \\*$//
tru64)
# The Tru64 compiler uses -MD to generate dependencies as a side
- # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+ # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
# At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
- # dependencies in `foo.d' instead, so we check for that too.
+ # dependencies in 'foo.d' instead, so we check for that too.
# Subdirectories are respected.
dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
test "x$dir" = "x$object" && dir=
done
if test -f "$tmpdepfile"; then
sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
- # That's a tab and a space in the [].
- sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
else
echo "#dummy" > "$depfile"
fi
p
}' | $cygpath_u | sort -u | sed -n '
s/ /\\ /g
-s/\(.*\)/ \1 \\/p
+s/\(.*\)/'"$tab"'\1 \\/p
s/.\(.*\) \\/\1:/
H
$ {
- s/.*/ /
+ s/.*/'"$tab"'/
G
p
}' >> "$depfile"
shift
fi
- # Remove `-o $object'.
+ # Remove '-o $object'.
IFS=" "
for arg
do
done
test -z "$dashmflag" && dashmflag=-M
- # Require at least two characters before searching for `:'
+ # Require at least two characters before searching for ':'
# in the target name. This is to cope with DOS-style filenames:
- # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+ # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
"$@" $dashmflag |
- sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
+ sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile"
rm -f "$depfile"
cat < "$tmpdepfile" > "$depfile"
- tr ' ' '
-' < "$tmpdepfile" | \
+ tr ' ' "$nl" < "$tmpdepfile" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
# makedepend may prepend the VPATH from the source file name to the object.
# No need to regex-escape $object, excess matching of '.' is harmless.
sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
- sed '1,2d' "$tmpdepfile" | tr ' ' '
-' | \
+ sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \
## Some versions of the HPUX 10.20 sed can't process this invocation
## correctly. Breaking it into two sed invocations is a workaround.
sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
shift
fi
- # Remove `-o $object'.
+ # Remove '-o $object'.
IFS=" "
for arg
do
sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
rm -f "$depfile"
echo "$object : \\" > "$depfile"
- sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
- echo " " >> "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
+ echo "$tab" >> "$depfile"
sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
rm -f "$tmpdepfile"
;;
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ALLOCA = @ALLOCA@
Summary: Complex Graphical Design/Layout Engine
Name: edje
-Version: 1.7.5
+Version: 1.7.7
Release: %{_rel}
License: BSD
Group: System Environment/Libraries
# compiler: $LTCC
# compiler flags: $LTCFLAGS
# linker: $LD (gnu? $with_gnu_ld)
-# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
+# $progname: (GNU libtool) 2.4.2
# automake: $automake_version
# autoconf: $autoconf_version
#
PROGRAM=libtool
PACKAGE=libtool
-VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
+VERSION=2.4.2
TIMESTAMP=""
package_revision=1.3337
case $pass in
dlopen) libs="$dlfiles" ;;
dlpreopen) libs="$dlprefiles" ;;
- link)
- libs="$deplibs %DEPLIBS%"
- test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
- ;;
+ link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
esac
fi
if test "$linkmode,$pass" = "lib,dlpreopen"; then
# It is a libtool convenience library, so add in its objects.
func_append convenience " $ladir/$objdir/$old_library"
func_append old_convenience " $ladir/$objdir/$old_library"
- tmp_libs=
- for deplib in $dependency_libs; do
- deplibs="$deplib $deplibs"
- if $opt_preserve_dup_deps ; then
- case "$tmp_libs " in
- *" $deplib "*) func_append specialdeplibs " $deplib" ;;
- esac
- fi
- func_append tmp_libs " $deplib"
- done
elif test "$linkmode" != prog && test "$linkmode" != lib; then
func_fatal_error "\`$lib' is not a convenience library"
fi
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_preserve_dup_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+ esac
+ fi
+ func_append tmp_libs " $deplib"
+ done
continue
fi # $pass = conv
revision="$number_minor"
lt_irix_increment=no
;;
- *)
- func_fatal_configuration "$modename: unknown library version type \`$version_type'"
- ;;
esac
;;
no)
# before this can be enabled.
hardcode_into_libs=yes
+ # Add ABI-specific directories to the system library path.
+ sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
+
# Append ld.so.conf contents to the search path
if test -f /etc/ld.so.conf; then
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
- sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
+
fi
# We used to test for /lib/ld.so.1 and disable shared libraries on
dynamic_linker='GNU/Linux ld.so'
;;
-netbsdelf*-gnu)
- version_type=linux
- need_lib_prefix=no
- need_version=no
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
- soname_spec='${libname}${release}${shared_ext}$major'
- shlibpath_var=LD_LIBRARY_PATH
- shlibpath_overrides_runpath=no
- hardcode_into_libs=yes
- dynamic_linker='NetBSD ld.elf_so'
- ;;
-
netbsd*)
version_type=sunos
need_lib_prefix=no
lt_cv_deplibs_check_method=pass_all
;;
-netbsd* | netbsdelf*-gnu)
+netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
else
;;
esac
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
;;
*qnx* | *nto*)
# QNX uses GNU C++, but need to define -shared option too, otherwise
;;
esac
;;
- linux* | k*bsd*-gnu | gnu*)
- _LT_TAGVAR(link_all_deplibs, $1)=no
- ;;
*)
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
;;
openbsd*)
with_gnu_ld=no
;;
- linux* | k*bsd*-gnu | gnu*)
- _LT_TAGVAR(link_all_deplibs, $1)=no
- ;;
esac
_LT_TAGVAR(ld_shlibs, $1)=yes
fi
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
wlarc=
if test "$aix_use_runtimelinking" = yes; then
shared_flag="$shared_flag "'${wl}-G'
fi
- _LT_TAGVAR(link_all_deplibs, $1)=no
else
# not using gcc
if test "$host_cpu" = ia64; then
_LT_TAGVAR(link_all_deplibs, $1)=yes
;;
- netbsd* | netbsdelf*-gnu)
+ netbsd*)
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
else
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+ fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p || test -f $$p1; \
$(AM_V_CCLD)$(edje_watch_LINK) $(edje_watch_OBJECTS) $(edje_watch_LDADD) $(LIBS)
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
#the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(epp_SOURCES)
DIST_SOURCES = $(epp_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
$(am__aclocal_m4_deps):
install-eppPROGRAMS: $(epp_PROGRAMS)
@$(NORMAL_INSTALL)
- test -z "$(eppdir)" || $(MKDIR_P) "$(DESTDIR)$(eppdir)"
@list='$(epp_PROGRAMS)'; test -n "$(eppdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(eppdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(eppdir)" || exit 1; \
+ fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p || test -f $$p1; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
edje-drag.c edje-multisense.c edje-perspective.c \
edje-signals-messages.c edje-swallow.c edje-swallow2.c \
edje-table.c edje-text.c signals2.c sigtest.c
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
$(am__aclocal_m4_deps):
install-examplesPROGRAMS: $(examples_PROGRAMS)
@$(NORMAL_INSTALL)
- test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)"
@list='$(examples_PROGRAMS)'; test -n "$(examplesdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(examplesdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(examplesdir)" || exit 1; \
+ fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p || test -f $$p1; \
-rm -rf .libs _libs
install-filesDATA: $(files_DATA)
@$(NORMAL_INSTALL)
- test -z "$(filesdir)" || $(MKDIR_P) "$(DESTDIR)$(filesdir)"
@list='$(files_DATA)'; test -n "$(filesdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(filesdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(filesdir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(libedje_la_SOURCES) $(nodist_libedje_la_SOURCES)
DIST_SOURCES = $(am__libedje_la_SOURCES_DIST)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
HEADERS = $(includes_HEADERS)
ETAGS = etags
CTAGS = ctags
$(am__aclocal_m4_deps):
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
- test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
else :; fi; \
done; \
test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
}
-rm -rf .libs _libs
install-includesHEADERS: $(includes_HEADERS)
@$(NORMAL_INSTALL)
- test -z "$(includesdir)" || $(MKDIR_P) "$(DESTDIR)$(includesdir)"
@list='$(includes_HEADERS)'; test -n "$(includesdir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(includesdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(includesdir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
struct stat st;
if (stat(file, &st) != 0)
- return NULL;
+ {
+ *error_ret = EDJE_LOAD_ERROR_DOES_NOT_EXIST;
+ return NULL;
+ }
if (!_edje_file_hash)
{
_edje_file_hash = eina_hash_string_small_new(NULL);
- goto open_new;
+ goto find_list;
}
edf = eina_hash_find(_edje_file_hash, file);
edf->references++;
goto open;
}
-
+
+find_list:
EINA_LIST_FOREACH(_edje_file_cache, l, edf)
{
if (!strcmp(edf->path, file))
#include "edje_private.h"
-static void _edje_part_make_rtl(Edje_Part_Description_Common *desc);
+static void _edje_part_make_rtl(Edje_Part_Description_Common *desc);
static Edje_Part_Description_Common *_edje_get_description_by_orientation(Edje *ed, Edje_Part_Description_Common *src, Edje_Part_Description_Common **dst, unsigned char type);
-static void _edje_part_recalc_single(Edje *ed, Edje_Real_Part *ep,
- Edje_Part_Description_Common *desc, Edje_Part_Description_Common *chosen_desc,
- Edje_Real_Part *center, Edje_Real_Part *light, Edje_Real_Part *persp,
- Edje_Real_Part *rel1_to_x, Edje_Real_Part *rel1_to_y,
- Edje_Real_Part *rel2_to_x, Edje_Real_Part *rel2_to_y,
- Edje_Real_Part *confine_to, Edje_Calc_Params *params,
- FLOAT_T pos);
+static void _edje_part_recalc_single(Edje *ed, Edje_Real_Part *ep,
+ Edje_Part_Description_Common *desc, Edje_Part_Description_Common *chosen_desc,
+ Edje_Real_Part *center, Edje_Real_Part *light, Edje_Real_Part *persp,
+ Edje_Real_Part *rel1_to_x, Edje_Real_Part *rel1_to_y,
+ Edje_Real_Part *rel2_to_x, Edje_Real_Part *rel2_to_y,
+ Edje_Real_Part *confine_to, Edje_Calc_Params *params,
+ FLOAT_T pos);
void
_edje_part_pos_set(Edje *ed, Edje_Real_Part *ep, int mode, FLOAT_T pos, FLOAT_T v1, FLOAT_T v2)
npos = ZERO;
#if 0 // old code - easy to enable for comparing float vs fixed point
- /* take linear pos along timescale and use interpolation method */
+ /* take linear pos along timescale and use interpolation method */
switch (mode)
{
case EDJE_TWEEN_MODE_SINUSOIDAL:
- /* npos = (1.0 - cos(pos * PI)) / 2.0; */
- npos = DIV2(SUB(FROM_INT(1),
- COS(MUL(fp_pos,
- PI))));
- break;
+ /* npos = (1.0 - cos(pos * PI)) / 2.0; */
+ npos = DIV2(SUB(FROM_INT(1),
+ COS(MUL(fp_pos,
+ PI))));
+ break;
+
case EDJE_TWEEN_MODE_ACCELERATE:
- /* npos = 1.0 - sin((PI / 2.0) + (pos * PI / 2.0)); */
- npos = SUB(FROM_INT(1),
- SIN(ADD(DIV2(PI),
- MUL(fp_pos,
- DIV2(PI)))));
- break;
+ /* npos = 1.0 - sin((PI / 2.0) + (pos * PI / 2.0)); */
+ npos = SUB(FROM_INT(1),
+ SIN(ADD(DIV2(PI),
+ MUL(fp_pos,
+ DIV2(PI)))));
+ break;
+
case EDJE_TWEEN_MODE_DECELERATE:
- /* npos = sin(pos * PI / 2.0); */
- npos = SIN(MUL(fp_pos,
- DIV2(PI)));
- break;
+ /* npos = sin(pos * PI / 2.0); */
+ npos = SIN(MUL(fp_pos,
+ DIV2(PI)));
+ break;
+
case EDJE_TWEEN_MODE_LINEAR:
- npos = fp_pos;
- break;
+ npos = fp_pos;
+ break;
+
default:
- npos = fp_pos;
- break;
+ npos = fp_pos;
+ break;
}
#else
switch (mode & EDJE_TWEEN_MODE_MASK)
ECORE_POS_MAP_SINUSOIDAL,
0.0, 0.0));
break;
+
case EDJE_TWEEN_MODE_ACCELERATE:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_ACCELERATE,
0.0, 0.0));
break;
+
case EDJE_TWEEN_MODE_DECELERATE:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_DECELERATE,
0.0, 0.0));
break;
+
case EDJE_TWEEN_MODE_LINEAR:
npos = fp_pos;
/* npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
- ECORE_POS_MAP_LINEAR,
+ ECORE_POS_MAP_LINEAR,
0.0, 0.0));
*/
break;
+
case EDJE_TWEEN_MODE_ACCELERATE_FACTOR:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_ACCELERATE_FACTOR,
TO_DOUBLE(v1), 0.0));
break;
+
case EDJE_TWEEN_MODE_DECELERATE_FACTOR:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_DECELERATE_FACTOR,
TO_DOUBLE(v1), 0.0));
break;
+
case EDJE_TWEEN_MODE_SINUSOIDAL_FACTOR:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_SINUSOIDAL_FACTOR,
TO_DOUBLE(v1), 0.0));
break;
+
case EDJE_TWEEN_MODE_DIVISOR_INTERP:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_DIVISOR_INTERP,
TO_DOUBLE(v1), TO_DOUBLE(v2)));
break;
+
case EDJE_TWEEN_MODE_BOUNCE:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_BOUNCE,
TO_DOUBLE(v1), TO_DOUBLE(v2)));
break;
+
case EDJE_TWEEN_MODE_SPRING:
npos = FROM_DOUBLE(ecore_animator_pos_map(TO_DOUBLE(pos),
ECORE_POS_MAP_SPRING,
TO_DOUBLE(v1), TO_DOUBLE(v2)));
break;
+
default:
npos = fp_pos;
break;
#endif
}
-
/**
* Returns part description
*
double t;
int i;
- if(!desc)
+ if (!desc)
return;
/* This makes alignment right-oriented */
size_t memsize = 0;
/* RTL flag is not set, return original description */
- if(!edje_object_mirrored_get(ed->obj))
- return src;
-
- if(*dst)
- return *dst; /* Was allocated before and we should use it */
-
-#define EDIT_ALLOC_POOL_RTL(Short, Type, Name) \
- case EDJE_PART_TYPE_##Short: \
- { \
- Edje_Part_Description_##Type *Name; \
- Name = eina_mempool_malloc(ce->mp_rtl.Short, \
- sizeof (Edje_Part_Description_##Type)); \
- memset(Name, 0, sizeof(Edje_Part_Description_##Type)); \
- desc_rtl = &Name->common; \
- memsize = sizeof(Edje_Part_Description_##Type); \
- break; \
- }
+ if (!edje_object_mirrored_get(ed->obj))
+ return src;
+
+ if (*dst)
+ return *dst; /* Was allocated before and we should use it */
+
+#define EDIT_ALLOC_POOL_RTL(Short, Type, Name) \
+case EDJE_PART_TYPE_##Short: \
+{ \
+ Edje_Part_Description_##Type * Name; \
+ Name = eina_mempool_malloc(ce->mp_rtl.Short, \
+ sizeof (Edje_Part_Description_##Type)); \
+ memset(Name, 0, sizeof(Edje_Part_Description_##Type)); \
+ desc_rtl = &Name->common; \
+ memsize = sizeof(Edje_Part_Description_##Type); \
+ break; \
+}
ce = eina_hash_find(ed->file->collection, ed->group);
switch (type)
{
case EDJE_PART_TYPE_RECTANGLE:
- desc_rtl = eina_mempool_malloc(ce->mp_rtl.RECTANGLE,
- sizeof (Edje_Part_Description_Common));
- ce->count.RECTANGLE++;
- memsize = sizeof(Edje_Part_Description_Common);
- break;
+ desc_rtl = eina_mempool_malloc(ce->mp_rtl.RECTANGLE,
+ sizeof (Edje_Part_Description_Common));
+ ce->count.RECTANGLE++;
+ memsize = sizeof(Edje_Part_Description_Common);
+ break;
+
case EDJE_PART_TYPE_SWALLOW:
- desc_rtl = eina_mempool_malloc(ce->mp_rtl.SWALLOW,
- sizeof (Edje_Part_Description_Common));
- ce->count.SWALLOW++;
- memsize = sizeof(Edje_Part_Description_Common);
- break;
+ desc_rtl = eina_mempool_malloc(ce->mp_rtl.SWALLOW,
+ sizeof (Edje_Part_Description_Common));
+ ce->count.SWALLOW++;
+ memsize = sizeof(Edje_Part_Description_Common);
+ break;
+
case EDJE_PART_TYPE_GROUP:
- desc_rtl = eina_mempool_malloc(ce->mp_rtl.GROUP,
- sizeof (Edje_Part_Description_Common));
- ce->count.GROUP++;
- memsize = sizeof(Edje_Part_Description_Common);
- break;
- case EDJE_PART_TYPE_SPACER:
- desc_rtl = eina_mempool_malloc(ce->mp_rtl.SPACER,
- sizeof (Edje_Part_Description_Common));
- ce->count.SPACER++;
- memsize = sizeof(Edje_Part_Description_Common);
- break;
- EDIT_ALLOC_POOL_RTL(TEXT, Text, text);
- EDIT_ALLOC_POOL_RTL(TEXTBLOCK, Text, text);
- EDIT_ALLOC_POOL_RTL(IMAGE, Image, image);
- EDIT_ALLOC_POOL_RTL(PROXY, Proxy, proxy);
- EDIT_ALLOC_POOL_RTL(BOX, Box, box);
- EDIT_ALLOC_POOL_RTL(TABLE, Table, table);
- EDIT_ALLOC_POOL_RTL(EXTERNAL, External, external_params);
+ desc_rtl = eina_mempool_malloc(ce->mp_rtl.GROUP,
+ sizeof (Edje_Part_Description_Common));
+ ce->count.GROUP++;
+ memsize = sizeof(Edje_Part_Description_Common);
+ break;
+
+ case EDJE_PART_TYPE_SPACER:
+ desc_rtl = eina_mempool_malloc(ce->mp_rtl.SPACER,
+ sizeof (Edje_Part_Description_Common));
+ ce->count.SPACER++;
+ memsize = sizeof(Edje_Part_Description_Common);
+ break;
+ EDIT_ALLOC_POOL_RTL(TEXT, Text, text);
+ EDIT_ALLOC_POOL_RTL(TEXTBLOCK, Text, text);
+ EDIT_ALLOC_POOL_RTL(IMAGE, Image, image);
+ EDIT_ALLOC_POOL_RTL(PROXY, Proxy, proxy);
+ EDIT_ALLOC_POOL_RTL(BOX, Box, box);
+ EDIT_ALLOC_POOL_RTL(TABLE, Table, table);
+ EDIT_ALLOC_POOL_RTL(EXTERNAL, External, external_params);
}
if (desc_rtl)
- memcpy(desc_rtl, src, memsize);
+ memcpy(desc_rtl, src, memsize);
_edje_part_make_rtl(desc_rtl);
unsigned int i;
/* RTL flag is set, return RTL description */
- if(edje_object_mirrored_get(ed->obj))
- if(!ep->other.desc_rtl)
+ if (edje_object_mirrored_get(ed->obj))
+ if (!ep->other.desc_rtl)
ep->other.desc_rtl = (Edje_Part_Description_Common **)
- calloc(ep->other.desc_count,
+ calloc(ep->other.desc_count,
sizeof (Edje_Part_Description_Common *));
if (!strcmp(name, "default") && val == 0.0)
return _edje_get_description_by_orientation(ed,
- ep->default_desc, &ep->default_desc_rtl, ep->type);
+ ep->default_desc, &ep->default_desc_rtl, ep->type);
if (!strcmp(name, "custom"))
return rp->custom ?
- _edje_get_description_by_orientation(ed, rp->custom->description,
- &rp->custom->description_rtl, ep->type) : NULL;
+ _edje_get_description_by_orientation(ed, rp->custom->description,
+ &rp->custom->description_rtl, ep->type) : NULL;
if (!strcmp(name, "default"))
{
static int
_edje_image_find(Evas_Object *obj, Edje *ed, Edje_Real_Part_Set **eps, Edje_Part_Description_Image *st, Edje_Part_Image_Id *imid)
{
- Edje_Image_Directory_Set_Entry *entry;
- Edje_Image_Directory_Set *set = NULL;
- Eina_List *l;
- int w = 0;
- int h = 0;
- int id;
-
- if (!st && !imid)
- return -1;
-
- if (st && !st->image.set)
- return st->image.id;
-
- if (imid && !imid->set)
- return imid->id;
-
- if (imid)
- id = imid->id;
- else
- id = st->image.id;
-
- evas_object_geometry_get(obj, NULL, NULL, &w, &h);
-
- if (eps && *eps)
- {
- if ((*eps)->id == id)
- set = (*eps)->set;
-
- if (set)
- if ((*eps)->entry->size.min.w <= w && w <= (*eps)->entry->size.max.w)
- if ((*eps)->entry->size.min.h <= h && h <= (*eps)->entry->size.max.h)
- return (*eps)->entry->id;
- }
-
- if (!set)
- set = ed->file->image_dir->sets + id;
-
- EINA_LIST_FOREACH(set->entries, l, entry)
- {
- if (entry->size.min.w <= w && w <= entry->size.max.w)
- if (entry->size.min.h <= h && h <= entry->size.max.h)
- {
- if (eps)
- {
- if (!*eps)
- *eps = calloc(1, sizeof (Edje_Real_Part_Set));
-
- if (*eps)
- {
- (*eps)->entry = entry;
- (*eps)->set = set;
- (*eps)->id = id;
- }
- }
- return entry->id;
- }
- }
+ Edje_Image_Directory_Set_Entry *entry;
+ Edje_Image_Directory_Set *set = NULL;
+ Eina_List *l;
+ int w = 0;
+ int h = 0;
+ int id;
+
+ if (!st && !imid)
+ return -1;
+
+ if (st && !st->image.set)
+ return st->image.id;
+
+ if (imid && !imid->set)
+ return imid->id;
+
+ if (imid)
+ id = imid->id;
+ else
+ id = st->image.id;
+
+ evas_object_geometry_get(obj, NULL, NULL, &w, &h);
+
+ if (eps && *eps)
+ {
+ if ((*eps)->id == id)
+ set = (*eps)->set;
+
+ if (set)
+ if ((*eps)->entry->size.min.w <= w && w <= (*eps)->entry->size.max.w)
+ if ((*eps)->entry->size.min.h <= h && h <= (*eps)->entry->size.max.h)
+ return (*eps)->entry->id;
+ }
+
+ if (!set)
+ set = ed->file->image_dir->sets + id;
+
+ EINA_LIST_FOREACH(set->entries, l, entry)
+ {
+ if (entry->size.min.w <= w && w <= entry->size.max.w)
+ if (entry->size.min.h <= h && h <= entry->size.max.h)
+ {
+ if (eps)
+ {
+ if (!*eps)
+ *eps = calloc(1, sizeof (Edje_Real_Part_Set));
+
+ if (*eps)
+ {
+ (*eps)->entry = entry;
+ (*eps)->set = set;
+ (*eps)->id = id;
+ }
+ }
+ return entry->id;
+ }
+ }
- return -1;
+ return -1;
}
static void
image_id = _edje_image_find(ep->object, ed,
&ep->param1.set,
- (Edje_Part_Description_Image*) ep->param1.description,
+ (Edje_Part_Description_Image *)ep->param1.description,
NULL);
if (image_id < 0)
{
{
image_count = 2;
if (ep->param2)
- image_count += ((Edje_Part_Description_Image*) ep->param2->description)->image.tweens_count;
+ image_count += ((Edje_Part_Description_Image *)ep->param2->description)->image.tweens_count;
image_num = TO_INT(MUL(pos, SUB(FROM_INT(image_count),
FROM_DOUBLE(0.5))));
if (image_num > (image_count - 1))
{
image_id = _edje_image_find(ep->object, ed,
&ep->param1.set,
- (Edje_Part_Description_Image*) ep->param1.description,
+ (Edje_Part_Description_Image *)ep->param1.description,
NULL);
}
else
- if (ep->param2)
- {
- if (image_num == (image_count - 1))
- {
- image_id = _edje_image_find(ep->object, ed,
- &ep->param2->set,
- (Edje_Part_Description_Image*) ep->param2->description,
- NULL);
- }
- else
- {
- Edje_Part_Image_Id *imid;
+ if (ep->param2)
+ {
+ if (image_num == (image_count - 1))
+ {
+ image_id = _edje_image_find(ep->object, ed,
+ &ep->param2->set,
+ (Edje_Part_Description_Image *)ep->param2->description,
+ NULL);
+ }
+ else
+ {
+ Edje_Part_Image_Id *imid;
- imid = ((Edje_Part_Description_Image*) ep->param2->description)->image.tweens[image_num - 1];
- image_id = _edje_image_find(ep->object, ed, NULL, NULL, imid);
- }
- }
+ imid = ((Edje_Part_Description_Image *)ep->param2->description)->image.tweens[image_num - 1];
+ image_id = _edje_image_find(ep->object, ed, NULL, NULL, imid);
+ }
+ }
if (image_id < 0)
{
ERR("¨Part \"%s\" description, "
switch (evas_object_image_load_error_get(ep->object))
{
case EVAS_LOAD_ERROR_GENERIC:
- ERR("Error type: EVAS_LOAD_ERROR_GENERIC");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_GENERIC");
+ break;
+
case EVAS_LOAD_ERROR_DOES_NOT_EXIST:
- ERR("Error type: EVAS_LOAD_ERROR_DOES_NOT_EXIST");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_DOES_NOT_EXIST");
+ break;
+
case EVAS_LOAD_ERROR_PERMISSION_DENIED:
- ERR("Error type: EVAS_LOAD_ERROR_PERMISSION_DENIED");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_PERMISSION_DENIED");
+ break;
+
case EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED:
- ERR("Error type: EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED");
+ break;
+
case EVAS_LOAD_ERROR_CORRUPT_FILE:
- ERR("Error type: EVAS_LOAD_ERROR_CORRUPT_FILE");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_CORRUPT_FILE");
+ break;
+
case EVAS_LOAD_ERROR_UNKNOWN_FORMAT:
- ERR("Error type: EVAS_LOAD_ERROR_UNKNOWN_FORMAT");
- break;
+ ERR("Error type: EVAS_LOAD_ERROR_UNKNOWN_FORMAT");
+ break;
+
default:
- ERR("Error type: ???");
- break;
+ ERR("Error type: ???");
+ break;
}
}
}
{
Edje_Part_Description_External *external;
- external = (Edje_Part_Description_External*) state->description;
+ external = (Edje_Part_Description_External *)state->description;
if (state->external_params)
_edje_external_parsed_params_free(ep->swallowed_object, state->external_params);
epd1 = _edje_part_description_find(ed, ep, d1, v1);
if (!epd1)
- epd1 = ep->part->default_desc; /* never NULL */
+ epd1 = ep->part->default_desc; /* never NULL */
if (d2)
epd2 = _edje_part_description_find(ed, ep, d2, v2);
- epdi = (Edje_Part_Description_Image*) epd2;
+ epdi = (Edje_Part_Description_Image *)epd2;
/* There is an animation if both description are different or if description is an image with tweens */
if (epd2 && (epd1 != epd2 || (ep->part->type == EDJE_PART_TYPE_IMAGE && epdi->image.tweens_count)))
ep->param2->external_params = NULL;
}
else
- if (ep->param2)
- {
- if (ep->part->type == EDJE_PART_TYPE_EXTERNAL)
- _edje_external_parsed_params_free(ep->swallowed_object,
- ep->param2->external_params);
- if (ep->param2)
- free(ep->param2->set);
- eina_mempool_free(_edje_real_part_state_mp, ep->param2);
- ep->param2 = NULL;
- }
+ if (ep->param2)
+ {
+ if (ep->part->type == EDJE_PART_TYPE_EXTERNAL)
+ _edje_external_parsed_params_free(ep->swallowed_object,
+ ep->param2->external_params);
+ if (ep->param2)
+ free(ep->param2->set);
+ eina_mempool_free(_edje_real_part_state_mp, ep->param2);
+ ep->param2 = NULL;
+ }
chosen_desc = ep->chosen_description;
ep->param1.description = epd1;
// XXX: dont need this with current smart calc infra. remove me later
// if (ed->postponed) return;
// if (!ed->calc_only)
- evas_object_smart_changed(ed->obj);
+ evas_object_smart_changed(ed->obj);
// XXX: dont need this with current smart calc infra. remove me later
// ed->postponed = 1;
}
evas_object_size_hint_min_set(ed->obj, w, h);
}
- if (!ed->collection) return ;
+ if (!ed->collection) return;
for (i = 0; i < ed->collection->limits.parts_count; i++)
{
switch (limit)
{
case 0:
- ed->collection->limits.parts[i].width = EDJE_PART_LIMIT_UNKNOWN;
- ed->collection->limits.parts[i].height = EDJE_PART_LIMIT_UNKNOWN;
- break;
+ ed->collection->limits.parts[i].width = EDJE_PART_LIMIT_UNKNOWN;
+ ed->collection->limits.parts[i].height = EDJE_PART_LIMIT_UNKNOWN;
+ break;
+
case 1:
- ed->collection->limits.parts[i].height = EDJE_PART_LIMIT_UNKNOWN;
- break;
+ ed->collection->limits.parts[i].height = EDJE_PART_LIMIT_UNKNOWN;
+ break;
+
case 2:
- ed->collection->limits.parts[i].width = EDJE_PART_LIMIT_UNKNOWN;
- break;
+ ed->collection->limits.parts[i].width = EDJE_PART_LIMIT_UNKNOWN;
+ break;
+
case 3:
- break;
+ break;
}
if ((limit & 1) == 1)
void
_edje_part_recalc_1(Edje *ed, Edje_Real_Part *ep)
{
- _edje_part_recalc(ed, ep, FLAG_XY, NULL);
+ _edje_part_recalc(ed, ep, FLAG_XY, NULL);
}
int
int ret = 0;
if ((ep->part->dragable.x != 0) &&
- (ep->part->dragable.y != 0 )) ret = 3;
- else if (ep->part->dragable.x != 0) ret = 1;
- else if (ep->part->dragable.y != 0) ret = 2;
+ (ep->part->dragable.y != 0)) ret = 3;
+ else if (ep->part->dragable.x != 0)
+ ret = 1;
+ else if (ep->part->dragable.y != 0)
+ ret = 2;
dx = FROM_INT(ep->x - ep->drag->confine_to->x);
dw = FROM_INT(ep->drag->confine_to->w - ep->w);
_edje_dragable_pos_set(Edje *ed, Edje_Real_Part *ep, FLOAT_T x, FLOAT_T y)
{
/* check whether this part is dragable at all */
- if (!ep->drag) return ;
+ if (!ep->drag) return;
/* instead of checking for equality, we really should check that
* the difference is greater than foo, but I have no idea what
if ((ep->swallow_params.aspect.w > 0) &&
(ep->swallow_params.aspect.h > 0))
amin = amax =
- DIV(FROM_INT(ep->swallow_params.aspect.w),
- FROM_INT(ep->swallow_params.aspect.h));
+ DIV(FROM_INT(ep->swallow_params.aspect.w),
+ FROM_INT(ep->swallow_params.aspect.h));
want_x = FROM_INT(params->x);
want_w = new_w = FROM_INT(params->w);
switch (ep->swallow_params.aspect.mode)
{
case EDJE_ASPECT_CONTROL_NEITHER:
- apref = EDJE_ASPECT_PREFER_NONE;
- break;
+ apref = EDJE_ASPECT_PREFER_NONE;
+ break;
+
case EDJE_ASPECT_CONTROL_HORIZONTAL:
- apref = EDJE_ASPECT_PREFER_HORIZONTAL;
- break;
+ apref = EDJE_ASPECT_PREFER_HORIZONTAL;
+ break;
+
case EDJE_ASPECT_CONTROL_VERTICAL:
- apref = EDJE_ASPECT_PREFER_VERTICAL;
- break;
+ apref = EDJE_ASPECT_PREFER_VERTICAL;
+ break;
+
case EDJE_ASPECT_CONTROL_BOTH:
- apref = EDJE_ASPECT_PREFER_BOTH;
- break;
+ apref = EDJE_ASPECT_PREFER_BOTH;
+ break;
+
default:
- break;
+ break;
}
}
switch (apref)
{
case EDJE_ASPECT_PREFER_NONE:
- /* keep both dimensions in check */
- /* adjust for min aspect (width / height) */
- if ((amin > ZERO) && (aspect < amin))
- {
- new_h = DIV(FROM_INT(params->w), amin);
- new_w = SCALE(amin, params->h);
- }
- /* adjust for max aspect (width / height) */
- if ((amax > ZERO) && (aspect > amax))
- {
- new_h = DIV(FROM_INT(params->w), amax);
- new_w = SCALE(amax, params->h);
- }
- if ((amax > ZERO) && (new_w < FROM_INT(params->w)))
- {
- new_w = FROM_INT(params->w);
- new_h = DIV(FROM_INT(params->w), amax);
- }
- if ((amax > ZERO) && (new_h < FROM_INT(params->h)))
- {
- new_w = SCALE(amax, params->h);
- new_h = FROM_INT(params->h);
- }
- break;
- /* prefer vertical size as determiner */
+ /* keep both dimensions in check */
+ /* adjust for min aspect (width / height) */
+ if ((amin > ZERO) && (aspect < amin))
+ {
+ new_h = DIV(FROM_INT(params->w), amin);
+ new_w = SCALE(amin, params->h);
+ }
+ /* adjust for max aspect (width / height) */
+ if ((amax > ZERO) && (aspect > amax))
+ {
+ new_h = DIV(FROM_INT(params->w), amax);
+ new_w = SCALE(amax, params->h);
+ }
+ if ((amax > ZERO) && (new_w < FROM_INT(params->w)))
+ {
+ new_w = FROM_INT(params->w);
+ new_h = DIV(FROM_INT(params->w), amax);
+ }
+ if ((amax > ZERO) && (new_h < FROM_INT(params->h)))
+ {
+ new_w = SCALE(amax, params->h);
+ new_h = FROM_INT(params->h);
+ }
+ break;
+
+ /* prefer vertical size as determiner */
case EDJE_ASPECT_PREFER_VERTICAL:
- /* keep both dimensions in check */
- /* adjust for max aspect (width / height) */
- if ((amax > ZERO) && (aspect > amax))
- new_w = SCALE(amax, params->h);
- /* adjust for min aspect (width / height) */
- if ((amin > ZERO) && (aspect < amin))
- new_w = SCALE(amin, params->h);
- break;
- /* prefer horizontal size as determiner */
+ /* keep both dimensions in check */
+ /* adjust for max aspect (width / height) */
+ if ((amax > ZERO) && (aspect > amax))
+ new_w = SCALE(amax, params->h);
+ /* adjust for min aspect (width / height) */
+ if ((amin > ZERO) && (aspect < amin))
+ new_w = SCALE(amin, params->h);
+ break;
+
+ /* prefer horizontal size as determiner */
case EDJE_ASPECT_PREFER_HORIZONTAL:
- /* keep both dimensions in check */
- /* adjust for max aspect (width / height) */
- if ((amax > ZERO) && (aspect > amax))
- new_h = DIV(FROM_INT(params->w), amax);
- /* adjust for min aspect (width / height) */
- if ((amin > ZERO) && (aspect < amin))
- new_h = DIV(FROM_INT(params->w), amin);
- break;
+ /* keep both dimensions in check */
+ /* adjust for max aspect (width / height) */
+ if ((amax > ZERO) && (aspect > amax))
+ new_h = DIV(FROM_INT(params->w), amax);
+ /* adjust for min aspect (width / height) */
+ if ((amin > ZERO) && (aspect < amin))
+ new_h = DIV(FROM_INT(params->w), amin);
+ break;
+
case EDJE_ASPECT_PREFER_SOURCE:
case EDJE_ASPECT_PREFER_BOTH:
- /* keep both dimensions in check */
- /* adjust for max aspect (width / height) */
- if ((amax > ZERO) && (aspect > amax))
- {
- new_w = SCALE(amax, params->h);
- new_h = DIV(FROM_INT(params->w), amax);
- }
- /* adjust for min aspect (width / height) */
- if ((amin > ZERO) && (aspect < amin))
- {
- new_w = SCALE(amin, params->h);
- new_h = DIV(FROM_INT(params->w), amin);
- }
- break;
+ /* keep both dimensions in check */
+ /* adjust for max aspect (width / height) */
+ if ((amax > ZERO) && (aspect > amax))
+ {
+ new_w = SCALE(amax, params->h);
+ new_h = DIV(FROM_INT(params->w), amax);
+ }
+ /* adjust for min aspect (width / height) */
+ if ((amin > ZERO) && (aspect < amin))
+ {
+ new_w = SCALE(amin, params->h);
+ new_h = DIV(FROM_INT(params->w), amin);
+ }
+ break;
+
default:
- break;
+ break;
}
if (!((amin > ZERO) && (amax > ZERO) &&
Evas_Coord tw, th, ins_l, ins_r, ins_t, ins_b;
const char *text = "";
const char *style = "";
- Edje_Style *stl = NULL;
+ Edje_Style *stl = NULL;
const char *tmp;
Eina_List *l;
if (chosen_desc->text.id_text_source >= 0)
{
ep->text.text_source = ed->table_parts[chosen_desc->text.id_text_source % ed->table_parts_size];
- text = edje_string_get(&((Edje_Part_Description_Text*)ep->text.text_source->chosen_description)->text.text);
+ text = edje_string_get(&((Edje_Part_Description_Text *)ep->text.text_source->chosen_description)->text.text);
if (ep->text.text_source->text.text) text = ep->text.text_source->text.text;
}
static void
_edje_textblock_recalc_apply(Edje *ed, Edje_Real_Part *ep,
- Edje_Calc_Params *params,
- Edje_Part_Description_Text *chosen_desc)
+ Edje_Calc_Params *params,
+ Edje_Part_Description_Text *chosen_desc)
{
/* FIXME: this is just an hack. */
FLOAT_T sc;
if (chosen_desc->text.fit_x || chosen_desc->text.fit_y)
{
_edje_part_recalc_single_textblock(sc, ed, ep, chosen_desc, params,
- NULL, NULL, NULL, NULL);
+ NULL, NULL, NULL, NULL);
}
}
if (mh > *minh) *minh = mh;
}
}
+
#else
{
char *sfont = NULL;
ep->text.text_source = NULL;
if (ep->text.text_source)
- text = edje_string_get(&(((Edje_Part_Description_Text*)ep->text.text_source->chosen_description)->text.text));
+ text = edje_string_get(&(((Edje_Part_Description_Text *)ep->text.text_source->chosen_description)->text.text));
else
text = edje_string_get(&chosen_desc->text.text);
if (ep->text.source)
- font = _edje_text_class_font_get(ed, ((Edje_Part_Description_Text*)ep->text.source->chosen_description), &size, &sfont);
+ font = _edje_text_class_font_get(ed, ((Edje_Part_Description_Text *)ep->text.source->chosen_description), &size, &sfont);
else
font = _edje_text_class_font_get(ed, chosen_desc, &size, &sfont);
{
int mw, mh;
Evas_Text_Style_Type
- style = EVAS_TEXT_STYLE_PLAIN,
- shadow = EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT;
+ style = EVAS_TEXT_STYLE_PLAIN,
+ shadow = EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT;
const Evas_Text_Style_Type styles[] = {
- EVAS_TEXT_STYLE_PLAIN,
- EVAS_TEXT_STYLE_PLAIN,
- EVAS_TEXT_STYLE_OUTLINE,
- EVAS_TEXT_STYLE_SOFT_OUTLINE,
- EVAS_TEXT_STYLE_SHADOW,
- EVAS_TEXT_STYLE_SOFT_SHADOW,
- EVAS_TEXT_STYLE_OUTLINE_SHADOW,
- EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW,
- EVAS_TEXT_STYLE_FAR_SHADOW,
- EVAS_TEXT_STYLE_FAR_SOFT_SHADOW,
- EVAS_TEXT_STYLE_GLOW
+ EVAS_TEXT_STYLE_PLAIN,
+ EVAS_TEXT_STYLE_PLAIN,
+ EVAS_TEXT_STYLE_OUTLINE,
+ EVAS_TEXT_STYLE_SOFT_OUTLINE,
+ EVAS_TEXT_STYLE_SHADOW,
+ EVAS_TEXT_STYLE_SOFT_SHADOW,
+ EVAS_TEXT_STYLE_OUTLINE_SHADOW,
+ EVAS_TEXT_STYLE_OUTLINE_SOFT_SHADOW,
+ EVAS_TEXT_STYLE_FAR_SHADOW,
+ EVAS_TEXT_STYLE_FAR_SOFT_SHADOW,
+ EVAS_TEXT_STYLE_GLOW
};
const Evas_Text_Style_Type shadows[] = {
- EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT,
- EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM,
- EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT,
- EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT,
- EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT,
+ EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_RIGHT,
+ EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM,
+ EVAS_TEXT_STYLE_SHADOW_DIRECTION_BOTTOM_LEFT,
+ EVAS_TEXT_STYLE_SHADOW_DIRECTION_LEFT,
+ EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_LEFT,
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP,
EVAS_TEXT_STYLE_SHADOW_DIRECTION_TOP_RIGHT,
EVAS_TEXT_STYLE_SHADOW_DIRECTION_RIGHT
< EDJE_TEXT_EFFECT_LAST)
style = styles[ep->part->effect];
shadow = shadows
- [(ep->part->effect & EDJE_TEXT_EFFECT_MASK_SHADOW_DIRECTION) >> 4];
+ [(ep->part->effect & EDJE_TEXT_EFFECT_MASK_SHADOW_DIRECTION) >> 4];
EVAS_TEXT_STYLE_SHADOW_DIRECTION_SET(style, shadow);
evas_object_text_style_set(ep->object, style);
switch (aspect)
{
case EDJE_ASPECT_PREFER_NONE:
- break;
+ break;
+
case EDJE_ASPECT_PREFER_VERTICAL:
- tmp = minh * params->w / h;
- if (tmp >= minw)
- {
- minw = tmp;
- break;
- }
+ tmp = minh * params->w / h;
+ if (tmp >= minw)
+ {
+ minw = tmp;
+ break;
+ }
+
case EDJE_ASPECT_PREFER_HORIZONTAL:
- tmp = minw * params->h / w;
- if (tmp >= minh)
- {
- minh = tmp;
- break;
- }
+ tmp = minw * params->h / w;
+ if (tmp >= minh)
+ {
+ minh = tmp;
+ break;
+ }
+
case EDJE_ASPECT_PREFER_SOURCE:
case EDJE_ASPECT_PREFER_BOTH:
- tmp = minh * params->w / h;
- if (tmp >= minw)
- {
- minw = tmp;
- break;
- }
+ tmp = minh * params->w / h;
+ if (tmp >= minw)
+ {
+ minw = tmp;
+ break;
+ }
- tmp = minw * params->h / w;
- if (tmp >= minh)
- {
- minh = tmp;
- break;
- }
+ tmp = minw * params->h / w;
+ if (tmp >= minh)
+ {
+ minh = tmp;
+ break;
+ }
- break;
+ break;
}
_edje_part_recalc_single_min_length(desc->align.x, ¶ms->x, ¶ms->w, minw);
switch (aspect)
{
case EDJE_ASPECT_PREFER_NONE:
- break;
+ break;
+
case EDJE_ASPECT_PREFER_VERTICAL:
- tmp = maxh * params->w / h;
- if (tmp <= maxw)
- {
- maxw = tmp;
- break;
- }
+ tmp = maxh * params->w / h;
+ if (tmp <= maxw)
+ {
+ maxw = tmp;
+ break;
+ }
+
case EDJE_ASPECT_PREFER_HORIZONTAL:
- tmp = maxw * params->h / w;
- if (tmp <= maxh)
- {
- maxh = tmp;
- break;
- }
+ tmp = maxw * params->h / w;
+ if (tmp <= maxh)
+ {
+ maxh = tmp;
+ break;
+ }
+
case EDJE_ASPECT_PREFER_SOURCE:
case EDJE_ASPECT_PREFER_BOTH:
- tmp = maxh * params->w / h;
- if (tmp <= maxw)
- {
- maxw = tmp;
- break;
- }
+ tmp = maxh * params->w / h;
+ if (tmp <= maxw)
+ {
+ maxw = tmp;
+ break;
+ }
- tmp = maxw * params->h / w;
- if (tmp <= maxh)
- {
- maxh = tmp;
- break;
- }
+ tmp = maxw * params->h / w;
+ if (tmp <= maxh)
+ {
+ maxh = tmp;
+ break;
+ }
- break;
+ break;
}
_edje_part_recalc_single_max_length(desc->align.x, ¶ms->x, ¶ms->w, maxw);
v = SCALE(ep->drag->size.x, confine_to->w);
if ((minw > 0) && (TO_INT(v) < minw)) params->w = minw;
- else if ((maxw >= 0) && (TO_INT(v) > maxw)) params->w = maxw;
+ else if ((maxw >= 0) && (TO_INT(v) > maxw))
+ params->w = maxw;
else params->w = TO_INT(v);
offset = TO_INT(SCALE(ep->drag->x, (confine_to->w - params->w)))
- + ep->drag->tmp.x;
+ + ep->drag->tmp.x;
if (ep->part->dragable.step_x > 0)
{
params->x = confine_to->x +
- ((offset / ep->part->dragable.step_x) * ep->part->dragable.step_x);
+ ((offset / ep->part->dragable.step_x) * ep->part->dragable.step_x);
}
else if (ep->part->dragable.count_x > 0)
{
step = (confine_to->w - params->w) / ep->part->dragable.count_x;
if (step < 1) step = 1;
params->x = confine_to->x +
- ((offset / step) * step);
+ ((offset / step) * step);
}
params->req_drag.x = params->x;
params->req_drag.w = params->w;
v = SCALE(ep->drag->size.y, confine_to->h);
if ((minh > 0) && (TO_INT(v) < minh)) params->h = minh;
- else if ((maxh >= 0) && (TO_INT(v) > maxh)) params->h = maxh;
+ else if ((maxh >= 0) && (TO_INT(v) > maxh))
+ params->h = maxh;
else params->h = TO_INT(v);
offset = TO_INT(SCALE(ep->drag->y, (confine_to->h - params->h)))
- + ep->drag->tmp.y;
+ + ep->drag->tmp.y;
if (ep->part->dragable.step_y > 0)
{
params->y = confine_to->y +
- ((offset / ep->part->dragable.step_y) * ep->part->dragable.step_y);
+ ((offset / ep->part->dragable.step_y) * ep->part->dragable.step_y);
}
else if (ep->part->dragable.count_y > 0)
{
step = (confine_to->h - params->h) / ep->part->dragable.count_y;
if (step < 1) step = 1;
params->y = confine_to->y +
- ((offset / step) * step);
+ ((offset / step) * step);
}
params->req_drag.y = params->y;
params->req_drag.h = params->h;
fw = params->w;
params->type.common.fill.x = fill->pos_abs_x
- + TO_INT(SCALE(fill->pos_rel_x, fw));
+ + TO_INT(SCALE(fill->pos_rel_x, fw));
params->type.common.fill.w = fill->abs_x
- + TO_INT(SCALE(fill->rel_x, fw));
+ + TO_INT(SCALE(fill->rel_x, fw));
if (fill->type == EDJE_FILL_TYPE_TILE)
evas_object_image_size_get(ep->object, NULL, &fh);
fh = params->h;
params->type.common.fill.y = fill->pos_abs_y
- + TO_INT(SCALE(fill->pos_rel_y, fh));
+ + TO_INT(SCALE(fill->pos_rel_y, fh));
params->type.common.fill.h = fill->abs_y
- + TO_INT(SCALE(fill->rel_y, fh));
+ + TO_INT(SCALE(fill->rel_y, fh));
params->type.common.fill.angle = fill->angle;
params->type.common.fill.spread = fill->spread;
params->lighted = params->mapped ? !!light : 0;
params->persp_on = params->mapped ? !!persp : 0;
- if (!params->mapped) return ;
+ if (!params->mapped) return;
if (center)
{
/* if we have text that wants to make the min size the text size... */
if (ep->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- _edje_part_recalc_single_textblock(sc, ed, ep, (Edje_Part_Description_Text*) chosen_desc, params, &minw, &minh, &maxw, &maxh);
+ _edje_part_recalc_single_textblock(sc, ed, ep, (Edje_Part_Description_Text *)chosen_desc, params, &minw, &minh, &maxw, &maxh);
else if (ep->part->type == EDJE_PART_TYPE_TEXT)
- _edje_part_recalc_single_text(sc, ed, ep, (Edje_Part_Description_Text*) desc, (Edje_Part_Description_Text*) chosen_desc, params, &minw, &minh, &maxw, &maxh);
+ _edje_part_recalc_single_text(sc, ed, ep, (Edje_Part_Description_Text *)desc, (Edje_Part_Description_Text *)chosen_desc, params, &minw, &minh, &maxw, &maxh);
if ((ep->part->type == EDJE_PART_TYPE_TABLE) &&
(((((Edje_Part_Description_Table *)chosen_desc)->table.min.h) ||
switch (ep->part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *img_desc = (Edje_Part_Description_Image*) desc;
+ {
+ Edje_Part_Description_Image *img_desc = (Edje_Part_Description_Image *)desc;
- /* border */
- params->type.common.spec.image.l = img_desc->image.border.l;
- params->type.common.spec.image.r = img_desc->image.border.r;
+ /* border */
+ params->type.common.spec.image.l = img_desc->image.border.l;
+ params->type.common.spec.image.r = img_desc->image.border.r;
- params->type.common.spec.image.t = img_desc->image.border.t;
- params->type.common.spec.image.b = img_desc->image.border.b;
+ params->type.common.spec.image.t = img_desc->image.border.t;
+ params->type.common.spec.image.b = img_desc->image.border.b;
+
+ params->type.common.spec.image.border_scale_by = img_desc->image.border.scale_by;
+ break;
+ }
- params->type.common.spec.image.border_scale_by = img_desc->image.border.scale_by;
- break;
- }
case EDJE_PART_TYPE_TEXT:
case EDJE_PART_TYPE_TEXTBLOCK:
+ {
+ Edje_Part_Description_Text *text_desc = (Edje_Part_Description_Text *)desc;
+
+ /* text.align */
+ params->type.text.align.x = text_desc->text.align.x;
+ params->type.text.align.y = text_desc->text.align.y;
+ params->type.text.elipsis = text_desc->text.elipsis;
+
+ /* text colors */
+ if (cc)
+ {
+ params->type.text.color2.r = (((int)cc->r2 + 1) * text_desc->common.color2.r) >> 8;
+ params->type.text.color2.g = (((int)cc->g2 + 1) * text_desc->common.color2.g) >> 8;
+ params->type.text.color2.b = (((int)cc->b2 + 1) * text_desc->common.color2.b) >> 8;
+ params->type.text.color2.a = (((int)cc->a2 + 1) * text_desc->common.color2.a) >> 8;
+ params->type.text.color3.r = (((int)cc->r3 + 1) * text_desc->text.color3.r) >> 8;
+ params->type.text.color3.g = (((int)cc->g3 + 1) * text_desc->text.color3.g) >> 8;
+ params->type.text.color3.b = (((int)cc->b3 + 1) * text_desc->text.color3.b) >> 8;
+ params->type.text.color3.a = (((int)cc->a3 + 1) * text_desc->text.color3.a) >> 8;
+ }
+ else
{
- Edje_Part_Description_Text *text_desc = (Edje_Part_Description_Text*) desc;
-
- /* text.align */
- params->type.text.align.x = text_desc->text.align.x;
- params->type.text.align.y = text_desc->text.align.y;
- params->type.text.elipsis = text_desc->text.elipsis;
-
- /* text colors */
- if (cc)
- {
- params->type.text.color2.r = (((int)cc->r2 + 1) * text_desc->common.color2.r) >> 8;
- params->type.text.color2.g = (((int)cc->g2 + 1) * text_desc->common.color2.g) >> 8;
- params->type.text.color2.b = (((int)cc->b2 + 1) * text_desc->common.color2.b) >> 8;
- params->type.text.color2.a = (((int)cc->a2 + 1) * text_desc->common.color2.a) >> 8;
- params->type.text.color3.r = (((int)cc->r3 + 1) * text_desc->text.color3.r) >> 8;
- params->type.text.color3.g = (((int)cc->g3 + 1) * text_desc->text.color3.g) >> 8;
- params->type.text.color3.b = (((int)cc->b3 + 1) * text_desc->text.color3.b) >> 8;
- params->type.text.color3.a = (((int)cc->a3 + 1) * text_desc->text.color3.a) >> 8;
- }
- else
- {
- params->type.text.color2.r = text_desc->common.color2.r;
- params->type.text.color2.g = text_desc->common.color2.g;
- params->type.text.color2.b = text_desc->common.color2.b;
- params->type.text.color2.a = text_desc->common.color2.a;
- params->type.text.color3.r = text_desc->text.color3.r;
- params->type.text.color3.g = text_desc->text.color3.g;
- params->type.text.color3.b = text_desc->text.color3.b;
- params->type.text.color3.a = text_desc->text.color3.a;
- }
-
- break;
+ params->type.text.color2.r = text_desc->common.color2.r;
+ params->type.text.color2.g = text_desc->common.color2.g;
+ params->type.text.color2.b = text_desc->common.color2.b;
+ params->type.text.color2.a = text_desc->common.color2.a;
+ params->type.text.color3.r = text_desc->text.color3.r;
+ params->type.text.color3.g = text_desc->text.color3.g;
+ params->type.text.color3.b = text_desc->text.color3.b;
+ params->type.text.color3.a = text_desc->text.color3.a;
}
+
+ break;
+ }
+
case EDJE_PART_TYPE_SPACER:
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
case EDJE_PART_TYPE_PROXY:
- break;
+ break;
+
case EDJE_PART_TYPE_GRADIENT:
- /* FIXME: THIS ONE SHOULD NEVER BE TRIGGERED. */
- break;
+ /* FIXME: THIS ONE SHOULD NEVER BE TRIGGERED. */
+ break;
+
default:
- break;
+ break;
}
_edje_part_recalc_single_map(ed, ep, center, light, persp, desc, chosen_desc, params);
int part_id = -1;
if (pos >= FROM_DOUBLE(0.5))
- part_id = ((Edje_Part_Description_Proxy*) ep->param2->description)->proxy.id;
+ part_id = ((Edje_Part_Description_Proxy *)ep->param2->description)->proxy.id;
else
part_id = chosen_desc->proxy.id;
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_TABLE:
case EDJE_PART_TYPE_PROXY:
- evas_object_image_source_set(ep->object, pp->object);
- break;
+ evas_object_image_source_set(ep->object, pp->object);
+ break;
+
case EDJE_PART_TYPE_GRADIENT:
- /* FIXME: THIS ONE SHOULD NEVER BE TRIGGERED. */
- break;
+ /* FIXME: THIS ONE SHOULD NEVER BE TRIGGERED. */
+ break;
+
case EDJE_PART_TYPE_GROUP:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_EXTERNAL:
- evas_object_image_source_set(ep->object, pp->swallowed_object);
- break;
+ evas_object_image_source_set(ep->object, pp->swallowed_object);
+ break;
+
case EDJE_PART_TYPE_SPACER:
- /* FIXME: detect that at compile time and prevent it */
- break;
+ /* FIXME: detect that at compile time and prevent it */
+ break;
}
evas_object_image_fill_set(ep->object, p3->type.common.fill.x, p3->type.common.fill.y,
evas_object_image_border_scale_set(ep->object, TO_DOUBLE(sc2));
}
else
- evas_object_image_border_scale_set(ep->object, TO_DOUBLE(sc));
+ evas_object_image_border_scale_set(ep->object, TO_DOUBLE(sc));
}
else
{
if (p3->type.common.spec.image.border_scale_by > FROM_DOUBLE(0.0))
- evas_object_image_border_scale_set
- (ep->object, TO_DOUBLE(p3->type.common.spec.image.border_scale_by));
+ evas_object_image_border_scale_set
+ (ep->object, TO_DOUBLE(p3->type.common.spec.image.border_scale_by));
else
evas_object_image_border_scale_set(ep->object, 1.0);
}
#ifdef EDJE_CALC_CACHE
if (state) *state = result->state;
#else
- (void) state;
+ (void)state;
#endif
}
}
#ifdef EDJE_CALC_CACHE
if (ep->state == ed->state && !state)
- return ;
+ return;
#endif
if (flags & FLAG_X)
int part_id = -1;
if (pos >= FROM_DOUBLE(0.5))
- part_id = ((Edje_Part_Description_Proxy*) ep->param2->description)->proxy.id;
+ part_id = ((Edje_Part_Description_Proxy *)ep->param2->description)->proxy.id;
else
- part_id = ((Edje_Part_Description_Proxy*) chosen_desc)->proxy.id;
+ part_id = ((Edje_Part_Description_Proxy *)chosen_desc)->proxy.id;
pp = _edje_real_part_state_get(ed, ep, flags, part_id, NULL);
#ifdef EDJE_CALC_CACHE
state ||
((ep->part->type == EDJE_PART_TYPE_TEXT || ep->part->type == EDJE_PART_TYPE_TEXTBLOCK) && ed->text_part_change))
#endif
- {
- _edje_part_recalc_single(ed, ep, ep->param1.description, chosen_desc, center[0], light[0], persp[0],
- ep->param1.rel1_to_x, ep->param1.rel1_to_y, ep->param1.rel2_to_x, ep->param1.rel2_to_y,
- confine_to,
- p1, pos);
+ {
+ _edje_part_recalc_single(ed, ep, ep->param1.description, chosen_desc, center[0], light[0], persp[0],
+ ep->param1.rel1_to_x, ep->param1.rel1_to_y, ep->param1.rel2_to_x, ep->param1.rel2_to_y,
+ confine_to,
+ p1, pos);
#ifdef EDJE_CALC_CACHE
- if (flags == FLAG_XY)
- ep->param1.state = ed->state;
+ if (flags == FLAG_XY)
+ ep->param1.state = ed->state;
#endif
- }
+ }
}
if (ep->param2)
{
{
/* FIXME: except for text, we don't need in that case to recalc p1 at all*/
memcpy(p1, ep->current, sizeof (Edje_Calc_Params));
- p1->x += ed->x;
- p1->y += ed->y;
- p1->map.center.x += ed->x;
- p1->map.center.y += ed->y;
- p1->map.light.x += ed->x;
- p1->map.light.y += ed->y;
- p1->map.persp.x += ed->x;
- p1->map.persp.y += ed->y;
}
p3 = &lp3;
state ||
((ep->part->type == EDJE_PART_TYPE_TEXT || ep->part->type == EDJE_PART_TYPE_TEXTBLOCK) && ed->text_part_change))
#endif
- {
- _edje_part_recalc_single(ed, ep, ep->param2->description,
- chosen_desc,
- center[1], light[1], persp[1],
- ep->param2->rel1_to_x,
- ep->param2->rel1_to_y,
- ep->param2->rel2_to_x,
- ep->param2->rel2_to_y,
- confine_to,
- p2, pos);
+ {
+ _edje_part_recalc_single(ed, ep, ep->param2->description,
+ chosen_desc,
+ center[1], light[1], persp[1],
+ ep->param2->rel1_to_x,
+ ep->param2->rel1_to_y,
+ ep->param2->rel2_to_x,
+ ep->param2->rel2_to_y,
+ confine_to,
+ p2, pos);
#ifdef EDJE_CALC_CACHE
- if (flags == FLAG_XY)
- ep->param2->state = ed->state;
+ if (flags == FLAG_XY)
+ ep->param2->state = ed->state;
#endif
- }
+ }
pos2 = pos;
if (pos2 < ZERO) pos2 = ZERO;
- else if (pos2 > FROM_INT(1)) pos2 = FROM_INT(1);
+ else if (pos2 > FROM_INT(1))
+ pos2 = FROM_INT(1);
beginning_pos = (pos < FROM_DOUBLE(0.5));
part_type = ep->part->type;
p3->smooth = (beginning_pos) ? p1->smooth : p2->smooth;
/* FIXME: do x and y separately base on flag */
-#define FINTP(_x1, _x2, _p) \
- (((_x1) == (_x2)) \
- ? FROM_INT((_x1)) \
- : ADD(FROM_INT(_x1), \
- SCALE((_p), (_x2) - (_x1))))
+#define FINTP(_x1, _x2, _p) \
+ (((_x1) == (_x2)) \
+ ? FROM_INT((_x1)) \
+ : ADD(FROM_INT(_x1), \
+ SCALE((_p), (_x2) - (_x1))))
-#define FFP(_x1, _x2, _p) \
- (((_x1) == (_x2)) \
- ? (_x1) \
- : ADD(_x1, MUL(_p, SUB(_x2, _x1))));
+#define FFP(_x1, _x2, _p) \
+ (((_x1) == (_x2)) \
+ ? (_x1) \
+ : ADD(_x1, MUL(_p, SUB(_x2, _x1))));
#define INTP(_x1, _x2, _p) TO_INT(FINTP(_x1, _x2, _p))
switch (part_type)
{
case EDJE_PART_TYPE_IMAGE:
- p3->type.common.spec.image.l = INTP(p1->type.common.spec.image.l, p2->type.common.spec.image.l, pos);
- p3->type.common.spec.image.r = INTP(p1->type.common.spec.image.r, p2->type.common.spec.image.r, pos);
- p3->type.common.spec.image.t = INTP(p1->type.common.spec.image.t, p2->type.common.spec.image.t, pos);
- p3->type.common.spec.image.b = INTP(p1->type.common.spec.image.b, p2->type.common.spec.image.b, pos);
- p3->type.common.spec.image.border_scale_by = INTP(p1->type.common.spec.image.border_scale_by, p2->type.common.spec.image.border_scale_by, pos);
+ p3->type.common.spec.image.l = INTP(p1->type.common.spec.image.l, p2->type.common.spec.image.l, pos);
+ p3->type.common.spec.image.r = INTP(p1->type.common.spec.image.r, p2->type.common.spec.image.r, pos);
+ p3->type.common.spec.image.t = INTP(p1->type.common.spec.image.t, p2->type.common.spec.image.t, pos);
+ p3->type.common.spec.image.b = INTP(p1->type.common.spec.image.b, p2->type.common.spec.image.b, pos);
+ p3->type.common.spec.image.border_scale_by = INTP(p1->type.common.spec.image.border_scale_by, p2->type.common.spec.image.border_scale_by, pos);
+
case EDJE_PART_TYPE_PROXY:
- p3->type.common.fill.x = INTP(p1->type.common.fill.x, p2->type.common.fill.x, pos);
- p3->type.common.fill.y = INTP(p1->type.common.fill.y, p2->type.common.fill.y, pos);
- p3->type.common.fill.w = INTP(p1->type.common.fill.w, p2->type.common.fill.w, pos);
- p3->type.common.fill.h = INTP(p1->type.common.fill.h, p2->type.common.fill.h, pos);
- break;
+ p3->type.common.fill.x = INTP(p1->type.common.fill.x, p2->type.common.fill.x, pos);
+ p3->type.common.fill.y = INTP(p1->type.common.fill.y, p2->type.common.fill.y, pos);
+ p3->type.common.fill.w = INTP(p1->type.common.fill.w, p2->type.common.fill.w, pos);
+ p3->type.common.fill.h = INTP(p1->type.common.fill.h, p2->type.common.fill.h, pos);
+ break;
+
case EDJE_PART_TYPE_TEXT:
- p3->type.text.size = INTP(p1->type.text.size, p2->type.text.size, pos);
+ p3->type.text.size = INTP(p1->type.text.size, p2->type.text.size, pos);
+
case EDJE_PART_TYPE_TEXTBLOCK:
- p3->type.text.color2.r = INTP(p1->type.text.color2.r, p2->type.text.color2.r, pos2);
- p3->type.text.color2.g = INTP(p1->type.text.color2.g, p2->type.text.color2.g, pos2);
- p3->type.text.color2.b = INTP(p1->type.text.color2.b, p2->type.text.color2.b, pos2);
- p3->type.text.color2.a = INTP(p1->type.text.color2.a, p2->type.text.color2.a, pos2);
+ p3->type.text.color2.r = INTP(p1->type.text.color2.r, p2->type.text.color2.r, pos2);
+ p3->type.text.color2.g = INTP(p1->type.text.color2.g, p2->type.text.color2.g, pos2);
+ p3->type.text.color2.b = INTP(p1->type.text.color2.b, p2->type.text.color2.b, pos2);
+ p3->type.text.color2.a = INTP(p1->type.text.color2.a, p2->type.text.color2.a, pos2);
- p3->type.text.color3.r = INTP(p1->type.text.color3.r, p2->type.text.color3.r, pos2);
- p3->type.text.color3.g = INTP(p1->type.text.color3.g, p2->type.text.color3.g, pos2);
- p3->type.text.color3.b = INTP(p1->type.text.color3.b, p2->type.text.color3.b, pos2);
- p3->type.text.color3.a = INTP(p1->type.text.color3.a, p2->type.text.color3.a, pos2);
+ p3->type.text.color3.r = INTP(p1->type.text.color3.r, p2->type.text.color3.r, pos2);
+ p3->type.text.color3.g = INTP(p1->type.text.color3.g, p2->type.text.color3.g, pos2);
+ p3->type.text.color3.b = INTP(p1->type.text.color3.b, p2->type.text.color3.b, pos2);
+ p3->type.text.color3.a = INTP(p1->type.text.color3.a, p2->type.text.color3.a, pos2);
- p3->type.text.align.x = FFP(p1->type.text.align.x, p2->type.text.align.x, pos);
- p3->type.text.align.y = FFP(p1->type.text.align.y, p2->type.text.align.y, pos);
- p3->type.text.elipsis = TO_DOUBLE(FINTP(p1->type.text.elipsis, p2->type.text.elipsis, pos2));
- break;
+ p3->type.text.align.x = FFP(p1->type.text.align.x, p2->type.text.align.x, pos);
+ p3->type.text.align.y = FFP(p1->type.text.align.y, p2->type.text.align.y, pos);
+ p3->type.text.elipsis = TO_DOUBLE(FINTP(p1->type.text.elipsis, p2->type.text.elipsis, pos2));
+ break;
}
p3->mapped = p1->mapped;
p3->map.rotation.y = FFP(p1->map.rotation.y, p2->map.rotation.y, pos);
p3->map.rotation.z = FFP(p1->map.rotation.z, p2->map.rotation.z, pos);
-#define MIX(P1, P2, P3, pos, info) \
- P3->info = P1->info + TO_INT(SCALE(pos, P2->info - P1->info));
+#define MIX(P1, P2, P3, pos, info) \
+ P3->info = P1->info + TO_INT(SCALE(pos, P2->info - P1->info));
if (p1->lighted && p2->lighted)
{
switch (ep->part->type)
{
case EDJE_PART_TYPE_IMAGE:
- {
- Edje_Part_Description_Image *img_desc = (Edje_Part_Description_Image*) chosen_desc;
+ {
+ Edje_Part_Description_Image *img_desc = (Edje_Part_Description_Image *)chosen_desc;
+
+ evas_object_image_scale_hint_set(ep->object,
+ img_desc->image.scale_hint);
+ }
- evas_object_image_scale_hint_set(ep->object,
- img_desc->image.scale_hint);
- }
case EDJE_PART_TYPE_PROXY:
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_TEXTBLOCK:
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_TABLE:
- evas_object_color_set(ep->object,
- (pf->color.r * pf->color.a) / 255,
- (pf->color.g * pf->color.a) / 255,
- (pf->color.b * pf->color.a) / 255,
- pf->color.a);
- if (!pf->visible)
- {
- evas_object_hide(ep->object);
- break;
- }
- evas_object_show(ep->object);
- /* move and resize are needed for all previous object => no break here. */
+ evas_object_color_set(ep->object,
+ (pf->color.r * pf->color.a) / 255,
+ (pf->color.g * pf->color.a) / 255,
+ (pf->color.b * pf->color.a) / 255,
+ pf->color.a);
+ if (!pf->visible)
+ {
+ evas_object_hide(ep->object);
+ break;
+ }
+ evas_object_show(ep->object);
+
+ /* move and resize are needed for all previous object => no break here. */
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
case EDJE_PART_TYPE_EXTERNAL:
- /* visibility and color have no meaning on SWALLOW and GROUP part. */
- evas_object_move(ep->object, ed->x + pf->x, ed->y + pf->y);
- evas_object_resize(ep->object, pf->w, pf->h);
- if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
- _edje_entry_real_part_configure(ep);
- break;
+ /* visibility and color have no meaning on SWALLOW and GROUP part. */
+ evas_object_move(ep->object, ed->x + pf->x, ed->y + pf->y);
+ evas_object_resize(ep->object, pf->w, pf->h);
+ if (ep->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
+ _edje_entry_real_part_configure(ep);
+ break;
+
case EDJE_PART_TYPE_TEXT:
- /* This is correctly handle in _edje_text_recalc_apply at the moment. */
- break;
+ /* This is correctly handle in _edje_text_recalc_apply at the moment. */
+ break;
+
case EDJE_PART_TYPE_GRADIENT:
- /* FIXME: definitivly remove this code when we switch to new format. */
- abort();
- break;
+ /* FIXME: definitivly remove this code when we switch to new format. */
+ abort();
+ break;
+
case EDJE_PART_TYPE_SPACER:
- /* We really should do nothing on SPACER part */
- break;
+ /* We really should do nothing on SPACER part */
+ break;
}
/* Some object need special recalc. */
switch (ep->part->type)
{
case EDJE_PART_TYPE_TEXT:
- _edje_text_recalc_apply(ed, ep, pf, (Edje_Part_Description_Text*) chosen_desc);
- break;
+ _edje_text_recalc_apply(ed, ep, pf, (Edje_Part_Description_Text *)chosen_desc);
+ break;
+
case EDJE_PART_TYPE_PROXY:
- _edje_proxy_recalc_apply(ed, ep, pf, (Edje_Part_Description_Proxy*) chosen_desc, pos);
- break;
+ _edje_proxy_recalc_apply(ed, ep, pf, (Edje_Part_Description_Proxy *)chosen_desc, pos);
+ break;
+
case EDJE_PART_TYPE_IMAGE:
- _edje_image_recalc_apply(ed, ep, pf, (Edje_Part_Description_Image*) chosen_desc, pos);
- break;
+ _edje_image_recalc_apply(ed, ep, pf, (Edje_Part_Description_Image *)chosen_desc, pos);
+ break;
+
case EDJE_PART_TYPE_BOX:
- _edje_box_recalc_apply(ed, ep, pf, (Edje_Part_Description_Box*) chosen_desc);
- break;
+ _edje_box_recalc_apply(ed, ep, pf, (Edje_Part_Description_Box *)chosen_desc);
+ break;
+
case EDJE_PART_TYPE_TABLE:
- _edje_table_recalc_apply(ed, ep, pf, (Edje_Part_Description_Table*) chosen_desc);
- break;
+ _edje_table_recalc_apply(ed, ep, pf, (Edje_Part_Description_Table *)chosen_desc);
+ break;
+
case EDJE_PART_TYPE_TEXTBLOCK:
- _edje_textblock_recalc_apply(ed, ep, pf, (Edje_Part_Description_Text*) chosen_desc);
- break;
+ _edje_textblock_recalc_apply(ed, ep, pf, (Edje_Part_Description_Text *)chosen_desc);
+ break;
+
case EDJE_PART_TYPE_EXTERNAL:
case EDJE_PART_TYPE_RECTANGLE:
case EDJE_PART_TYPE_SWALLOW:
case EDJE_PART_TYPE_GROUP:
- /* Nothing special to do for this type of object. */
- break;
+ /* Nothing special to do for this type of object. */
+ break;
+
case EDJE_PART_TYPE_GRADIENT:
- /* FIXME: definitivly remove this code when we switch to new format. */
- abort();
- break;
+ /* FIXME: definitivly remove this code when we switch to new format. */
+ abort();
+ break;
+
case EDJE_PART_TYPE_SPACER:
- /* We really should do nothing on SPACER part */
- break;
+ /* We really should do nothing on SPACER part */
+ break;
}
if (ep->swallowed_object)
if (ep->part->type == EDJE_PART_TYPE_IMAGE ||
((ep->part->type == EDJE_PART_TYPE_SWALLOW) &&
(!strcmp(evas_object_type_get(mo), "image") &&
- (!evas_object_image_source_get(mo))))
- )
+ (!evas_object_image_source_get(mo))))
+ )
{
int iw = 1, ih = 1;
evas_object_image_size_get(mo, &iw, &ih);
evas_map_point_image_uv_set(map, 0, 0.0, 0.0);
- evas_map_point_image_uv_set(map, 1, iw , 0.0);
- evas_map_point_image_uv_set(map, 2, iw , ih );
- evas_map_point_image_uv_set(map, 3, 0.0, ih );
+ evas_map_point_image_uv_set(map, 1, iw, 0.0);
+ evas_map_point_image_uv_set(map, 2, iw, ih);
+ evas_map_point_image_uv_set(map, 3, 0.0, ih);
}
evas_map_util_3d_rotate(map,
TO_DOUBLE(pf->map.rotation.x), TO_DOUBLE(pf->map.rotation.y), TO_DOUBLE(pf->map.rotation.z),
}
#endif
}
+
}
ALLOC_DESC(RECTANGLE, Common, d);
+ ALLOC_DESC(SPACER, Common, d);
ALLOC_DESC(SWALLOW, Common, d);
ALLOC_DESC(GROUP, Common, d);
ALLOC_COPY_DESC(IMAGE, Image, d, image);
+ ALLOC_COPY_DESC(PROXY, Proxy, d, proxy);
ALLOC_COPY_DESC(TEXT, Text, d, text);
ALLOC_COPY_DESC(TEXTBLOCK, Text, d, text);
ALLOC_COPY_DESC(BOX, Box, d, box);
{
char *tmp = alloca(dst_len);
memcpy(tmp, eep.s, dst_len - 1);
- tmp[dst_len] = '\0';
+ tmp[dst_len-1] = '\0';
SETSTR(tmp, params[3]);
}
return 1;
{
char *tmp = alloca(dst_len);
memcpy(tmp, eep.s, dst_len - 1);
- tmp[dst_len] = '\0';
+ tmp[dst_len-1] = '\0';
SETSTR(tmp, params[3]);
}
return 1;
en = rp->entry_data;
ignored = rp->part->ignore_flags & ev->event_flags;
- if ((rp->part->select_mode == EDJE_ENTRY_SELECTION_MODE_EXPLICIT) &&
- (en->select_allow))
- return;
n = an->name;
if (!n) n = "";
len = 200 + strlen(n);
buf = alloca(len);
- if ((!ev->event_flags) || (!ignored))
+ if ((rp->part->select_mode != EDJE_ENTRY_SELECTION_MODE_EXPLICIT) ||
+ (!en->select_allow))
{
- snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, n);
- _edje_emit(rp->edje, buf, rp->part->name);
+ if ((!ev->event_flags) || (!ignored))
+ {
+ snprintf(buf, len, "anchor,mouse,up,%i,%s", ev->button, n);
+ _edje_emit(rp->edje, buf, rp->part->name);
+ }
}
if ((rp->still_in) && (rp->clicked_button == ev->button) && (!ignored))
{
if (en->imf_context)
{
Ecore_IMF_Event_Key_Down ecore_ev;
+ Eina_Bool filter_ret;
ecore_imf_evas_event_key_down_wrap(ev, &ecore_ev);
if (!en->composing)
{
- if (ecore_imf_context_filter_event(en->imf_context,
- ECORE_IMF_EVENT_KEY_DOWN,
- (Ecore_IMF_Event *)&ecore_ev))
+ filter_ret = ecore_imf_context_filter_event(en->imf_context,
+ ECORE_IMF_EVENT_KEY_DOWN,
+ (Ecore_IMF_Event *)&ecore_ev);
+
+ if (!strcmp(ev->keyname, "Down") ||
+ (!strcmp(ev->keyname, "KP_Down") && !ev->string) ||
+ !strcmp(ev->keyname, "Up") ||
+ (!strcmp(ev->keyname, "KP_Up") && !ev->string))
+ {
+ if (en->have_preedit)
+ ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
+ }
+
+ if (filter_ret)
return;
}
}
/* States manipulations. */
-typedef struct _Edje_State Edje_State;
+typedef struct _Edje_State Edje_State;
struct _Edje_State
{
- size_t idx;
- size_t pos;
+ size_t idx;
+ size_t pos;
};
struct _Edje_States
{
- size_t size;
- Edje_State *states;
- Eina_Bool *has;
+ size_t size;
+ Edje_State *states;
+ Eina_Bool *has;
};
static void
-_edje_match_states_free(Edje_States *states,
- size_t states_size)
+_edje_match_states_free(Edje_States *states,
+ size_t states_size)
{
- (void) states_size;
+ (void)states_size;
free(states);
}
-#define ALIGN(Size) \
- { \
- Size--; \
- Size |= sizeof (void*) - 1; \
- Size++; \
+#define ALIGN(Size) \
+ { \
+ Size--; \
+ Size |= sizeof (void *) - 1; \
+ Size++; \
};
static int
const size_t array_len = (patterns_max_length + 1) * patterns_size;
- size_t states_size;
- size_t has_size;
- size_t states_has_size;
- size_t struct_size;
+ size_t states_size;
+ size_t has_size;
+ size_t states_has_size;
+ size_t struct_size;
- unsigned char *states;
- unsigned char *has;
+ unsigned char *states;
+ unsigned char *has;
- int i;
+ int i;
states_size = sizeof (*l->states) * array_len;
ALIGN(states_size);
ppat->states = l;
ppat->states->size = 0;
- states = (unsigned char *) (l + n);
+ states = (unsigned char *)(l + n);
has = states + states_size;
for (i = 0; i < n; ++i)
{
- l[i].states = (Edje_State *) states;
- l[i].has = (Eina_Bool *) has;
+ l[i].states = (Edje_State *)states;
+ l[i].has = (Eina_Bool *)has;
l[i].size = 0;
- memset(l[i].has, 0, has_size);
+ memset(l[i].has, 0, has_size);
states += states_has_size;
has += states_has_size;
}
static void
-_edje_match_states_insert(Edje_States *list,
- size_t patterns_max_length,
- size_t idx,
- size_t pos)
+_edje_match_states_insert(Edje_States *list,
+ size_t patterns_max_length,
+ size_t idx,
+ size_t pos)
{
size_t i;
if (i < list->size)
{
- if (list->has[i]) return;
+ if (list->has[i]) return;
}
list->has[i] = 1;
enum status
{
- patterns_not_found = 0,
- patterns_found = 1,
- patterns_syntax_error = 2
+ patterns_not_found = 0,
+ patterns_found = 1,
+ patterns_syntax_error = 2
};
static size_t
-_edje_match_patterns_exec_class_token(enum status *status,
- const char *cl_tok,
- char c)
+_edje_match_patterns_exec_class_token(enum status *status,
+ const char *cl_tok,
+ char c)
{
- if (! *cl_tok)
+ if (!*cl_tok)
{
*status = patterns_syntax_error;
return 0;
else if (cl_tok[1] == '-' && cl_tok[2] != ']')
{
if (*cl_tok <= c && c <= cl_tok[2])
- *status = patterns_found;
+ *status = patterns_found;
return 3;
}
else
{
if (c == *cl_tok)
- *status = patterns_found;
+ *status = patterns_found;
return 1;
}
}
switch (*cl_tok)
{
case 0:
- return EDJE_MATCH_SYNTAX_ERROR;
+ return EDJE_MATCH_SYNTAX_ERROR;
case '!':
*ret = 1;
- return EDJE_MATCH_OK;
+ return EDJE_MATCH_OK;
default:
- *ret = 0;
- return EDJE_MATCH_OK;
+ *ret = 0;
+ return EDJE_MATCH_OK;
}
}
static Edje_Match_Error
-_edje_match_patterns_exec_class(const char *cl,
- char c,
- size_t *ret)
+_edje_match_patterns_exec_class(const char *cl,
+ char c,
+ size_t *ret)
{
- enum status status = patterns_not_found;
- int pos = 1;
- size_t neg;
+ enum status status = patterns_not_found;
+ int pos = 1;
+ size_t neg;
if (_edje_match_patterns_exec_class_complement(cl + 1, &neg) != EDJE_MATCH_OK)
- return EDJE_MATCH_SYNTAX_ERROR;
+ return EDJE_MATCH_SYNTAX_ERROR;
pos += neg;
}
while (cl[pos] && cl[pos] != ']');
- if (status == patterns_syntax_error || ! cl[pos])
- return EDJE_MATCH_SYNTAX_ERROR;
+ if (status == patterns_syntax_error || !cl[pos])
+ return EDJE_MATCH_SYNTAX_ERROR;
if (status == patterns_found)
- *ret = neg ? 0 : pos + 1;
+ *ret = neg ? 0 : pos + 1;
else
- *ret = neg ? pos + 1 : 0;
+ *ret = neg ? pos + 1 : 0;
return EDJE_MATCH_OK;
}
static Edje_Match_Error
-_edje_match_patterns_exec_token(const char *tok,
- char c,
- size_t *ret)
+_edje_match_patterns_exec_token(const char *tok,
+ char c,
+ size_t *ret)
{
- switch (*tok)
- {
- case '\\':
- if (tok[1])
- {
- *ret = tok[1] == c ? 2 : 0;
- return EDJE_MATCH_OK;
- }
- return EDJE_MATCH_SYNTAX_ERROR;
+ switch (*tok)
+ {
+ case '\\':
+ if (tok[1])
+ {
+ *ret = tok[1] == c ? 2 : 0;
+ return EDJE_MATCH_OK;
+ }
+ return EDJE_MATCH_SYNTAX_ERROR;
- case '?':
- *ret = 1;
- return EDJE_MATCH_OK;
+ case '?':
+ *ret = 1;
+ return EDJE_MATCH_OK;
- case '[':
- return _edje_match_patterns_exec_class(tok, c, ret);
+ case '[':
+ return _edje_match_patterns_exec_class(tok, c, ret);
- default:
- *ret = *tok == c ? 1 : 0;
- return EDJE_MATCH_OK;
- }
+ default:
+ *ret = *tok == c ? 1 : 0;
+ return EDJE_MATCH_OK;
+ }
}
static void
-_edje_match_patterns_exec_init_states(Edje_States *states,
- size_t patterns_size,
- size_t patterns_max_length)
+_edje_match_patterns_exec_init_states(Edje_States *states,
+ size_t patterns_size,
+ size_t patterns_max_length)
{
- size_t i;
+ size_t i;
states->size = patterns_size;
/* Exported function. */
-#define EDJE_MATCH_INIT_LIST(Func, Type, Source, Show) \
- Edje_Patterns* \
- Func(const Eina_List *lst) \
- { \
- Edje_Patterns *r; \
- size_t i; \
- \
- if (!lst || eina_list_count(lst) <= 0) \
- return NULL; \
- \
- r = malloc(sizeof (Edje_Patterns) + \
- eina_list_count(lst) \
- * sizeof(*r->finals) \
- * sizeof(*r->patterns)); \
- if (!r) return NULL; \
- \
- r->ref = 1; \
- r->delete_me = 0; \
- r->patterns_size = eina_list_count(lst); \
- r->max_length = 0; \
- r->patterns = (const char **) r->finals + r->patterns_size + 1; \
- \
- for (i = 0; lst; ++i) \
- { \
- const char *str; \
- Type *data; \
- size_t j; \
- int special = 0; \
- \
- data = eina_list_data_get(lst); \
- if (!data) \
- { \
- free(r); \
- return NULL; \
- } \
- \
- str = data->Source; \
- if (!str) str = ""; \
- r->patterns[i] = str; \
- \
- if (Show) \
- INF("%lu [%s]", (unsigned long)i, str); \
- \
- r->finals[i] = 0; \
- for (j = 0; str[j]; ++j) \
- if (str[j] != '*') \
- { \
- r->finals[i] = j + 1; \
- special++; \
- } \
- j += special ? special + 1 : 0; \
- \
- if (j > r->max_length) \
- r->max_length = j; \
- \
- lst = eina_list_next(lst); \
- } \
- \
- if (!_edje_match_states_alloc(r, 2)) \
- { \
- free(r); \
- return NULL; \
- } \
- \
- return r; \
+#define EDJE_MATCH_INIT_LIST(Func, Type, Source, Show) \
+ Edje_Patterns * \
+ Func(const Eina_List *lst) \
+ { \
+ Edje_Patterns *r; \
+ size_t i; \
+ \
+ if (!lst || eina_list_count(lst) <= 0) \
+ return NULL; \
+ \
+ r = malloc(sizeof (Edje_Patterns) + \
+ eina_list_count(lst) \
+ * sizeof(*r->finals) \
+ * sizeof(*r->patterns)); \
+ if (!r) return NULL; \
+ \
+ r->ref = 1; \
+ r->delete_me = 0; \
+ r->patterns_size = eina_list_count(lst); \
+ r->max_length = 0; \
+ r->patterns = (const char **)r->finals + r->patterns_size + 1; \
+ \
+ for (i = 0; lst; ++i) \
+ { \
+ const char *str; \
+ Type *data; \
+ size_t j; \
+ int special = 0; \
+ \
+ data = eina_list_data_get(lst); \
+ if (!data) \
+ { \
+ free(r); \
+ return NULL; \
+ } \
+ \
+ str = data->Source; \
+ if (!str) str = ""; \
+ r->patterns[i] = str; \
+ \
+ if (Show) \
+ INF("%lu [%s]", (unsigned long)i, str); \
+ \
+ r->finals[i] = 0; \
+ for (j = 0; str[j]; ++j) \
+ if (str[j] != '*') \
+ { \
+ r->finals[i] = j + 1; \
+ special++; \
+ } \
+ j += special ? special + 1 : 0; \
+ \
+ if (j > r->max_length) \
+ r->max_length = j; \
+ \
+ lst = eina_list_next(lst); \
+ } \
+ \
+ if (!_edje_match_states_alloc(r, 2)) \
+ { \
+ free(r); \
+ return NULL; \
+ } \
+ \
+ return r; \
}
-#define EDJE_MATCH_INIT_ARRAY(Func, Type, Source, Show) \
- Edje_Patterns* \
- Func(Type * const *lst, unsigned int count) \
- { \
- Edje_Patterns *r; \
- size_t i; \
- \
- if (!lst || count == 0) \
- return NULL; \
- \
- r = malloc(sizeof (Edje_Patterns) + \
- count \
- * sizeof(*r->finals) \
- * sizeof(*r->patterns)); \
- if (!r) return NULL; \
- \
- r->ref = 1; \
- r->delete_me = 0; \
- r->patterns_size = count; \
- r->max_length = 0; \
- r->patterns = (const char **) r->finals + r->patterns_size + 1; \
- \
- for (i = 0; i < count; ++i) \
- { \
- const char *str; \
- size_t j; \
- int special = 0; \
- \
- if (!lst[i]) \
- { \
- free(r); \
- return NULL; \
- } \
- \
- str = lst[i]->Source; \
- if (!str) str = ""; \
- r->patterns[i] = str; \
- \
- if (Show) \
- INF("%lu [%s]", (unsigned long)i, str); \
- \
- r->finals[i] = 0; \
- for (j = 0; str[j]; ++j) \
- if (str[j] != '*') \
- { \
- r->finals[i] = j + 1; \
- special++; \
- } \
- j += special ? special + 1 : 0; \
- \
- if (j > r->max_length) \
- r->max_length = j; \
- } \
- \
- if (!_edje_match_states_alloc(r, 2)) \
- { \
- free(r); \
- return NULL; \
- } \
- \
- return r; \
+#define EDJE_MATCH_INIT_ARRAY(Func, Type, Source, Show) \
+ Edje_Patterns * \
+ Func(Type * const *lst, unsigned int count) \
+ { \
+ Edje_Patterns *r; \
+ size_t i; \
+ \
+ if (!lst || count == 0) \
+ return NULL; \
+ \
+ r = malloc(sizeof (Edje_Patterns) + \
+ count \
+ * sizeof(*r->finals) \
+ * sizeof(*r->patterns)); \
+ if (!r) return NULL; \
+ \
+ r->ref = 1; \
+ r->delete_me = 0; \
+ r->patterns_size = count; \
+ r->max_length = 0; \
+ r->patterns = (const char **)r->finals + r->patterns_size + 1; \
+ \
+ for (i = 0; i < count; ++i) \
+ { \
+ const char *str; \
+ size_t j; \
+ int special = 0; \
+ \
+ if (!lst[i]) \
+ { \
+ free(r); \
+ return NULL; \
+ } \
+ \
+ str = lst[i]->Source; \
+ if (!str) str = ""; \
+ r->patterns[i] = str; \
+ \
+ if (Show) \
+ INF("%lu [%s]", (unsigned long)i, str); \
+ \
+ r->finals[i] = 0; \
+ for (j = 0; str[j]; ++j) \
+ if (str[j] != '*') \
+ { \
+ r->finals[i] = j + 1; \
+ special++; \
+ } \
+ j += special ? special + 1 : 0; \
+ \
+ if (j > r->max_length) \
+ r->max_length = j; \
+ } \
+ \
+ if (!_edje_match_states_alloc(r, 2)) \
+ { \
+ free(r); \
+ return NULL; \
+ } \
+ \
+ return r; \
}
EDJE_MATCH_INIT_LIST(edje_match_collection_dir_init,
- Edje_Part_Collection_Directory_Entry,
- entry, 0);
+ Edje_Part_Collection_Directory_Entry,
+ entry, 0);
EDJE_MATCH_INIT_ARRAY(edje_match_programs_signal_init,
- Edje_Program,
- signal, 0);
+ Edje_Program,
+ signal, 0);
EDJE_MATCH_INIT_ARRAY(edje_match_programs_source_init,
- Edje_Program,
- source, 0);
+ Edje_Program,
+ source, 0);
EDJE_MATCH_INIT_LIST(edje_match_callback_signal_init,
- Edje_Signal_Callback,
- signal, 0);
+ Edje_Signal_Callback,
+ signal, 0);
EDJE_MATCH_INIT_LIST(edje_match_callback_source_init,
- Edje_Signal_Callback,
- source, 0);
+ Edje_Signal_Callback,
+ source, 0);
static Eina_Bool
-_edje_match_collection_dir_exec_finals(const size_t *finals,
+_edje_match_collection_dir_exec_finals(const size_t *finals,
const Edje_States *states)
{
- size_t i;
+ size_t i;
for (i = 0; i < states->size; ++i)
{
if (states->states[i].pos >= finals[states->states[i].idx])
- return EINA_TRUE;
+ return EINA_TRUE;
}
return EINA_FALSE;
}
static Eina_Bool
-edje_match_programs_exec_check_finals(const size_t *signal_finals,
- const size_t *source_finals,
+edje_match_programs_exec_check_finals(const size_t *signal_finals,
+ const size_t *source_finals,
const Edje_States *signal_states,
const Edje_States *source_states,
- Edje_Program **programs,
+ Edje_Program **programs,
Eina_Bool (*func)(Edje_Program *pr, void *data),
- void *data,
- Eina_Bool prop __UNUSED__)
+ void *data,
+ Eina_Bool prop __UNUSED__)
{
- size_t i;
- size_t j;
+ size_t i;
+ size_t j;
/* when not enought memory, they could be NULL */
if (!signal_finals || !source_finals) return EINA_TRUE;
if (signal_states->states[i].idx == source_states->states[j].idx
&& source_states->states[j].pos >= source_finals[source_states->states[j].idx])
{
- Edje_Program *pr;
+ Edje_Program *pr;
pr = programs[signal_states->states[i].idx];
if (pr)
{
if (func(pr, data))
- return EINA_FALSE;
+ return EINA_FALSE;
}
}
}
static int
edje_match_callback_exec_check_finals(const Edje_Patterns *signal_ppat,
const Edje_Patterns *source_ppat,
- const size_t *signal_finals,
- const size_t *source_finals,
+ const size_t *signal_finals,
+ const size_t *source_finals,
const Edje_States *signal_states,
const Edje_States *source_states,
- const char *sig,
- const char *source,
- Eina_List *callbacks,
- Edje *ed,
- Eina_Bool prop
- )
+ const char *sig,
+ const char *source,
+ Eina_List *callbacks,
+ Edje *ed,
+ Eina_Bool prop
+ )
{
Edje_Signal_Callback *escb;
- Eina_Array run;
- size_t i;
- size_t j;
- int r = 1;
+ Eina_Array run;
+ size_t i;
+ size_t j;
+ int r = 1;
eina_array_step_set(&run, sizeof (Eina_Array), 4);
{
escb->func(escb->data, ed->obj, sig, source);
if (_edje_block_break(ed))
- {
+ {
r = 0;
break;
}
return r;
}
-
-static Edje_States*
-_edje_match_fn(const Edje_Patterns *ppat,
- const char *string,
- Edje_States *states)
+static Edje_States *
+_edje_match_fn(const Edje_Patterns *ppat,
+ const char *string,
+ Edje_States *states)
{
- Edje_States *new_states = states + 1;
- const char *c;
+ Edje_States *new_states = states + 1;
+ const char *c;
for (c = string; *c && states->size; ++c)
{
- size_t i;
+ size_t i;
_edje_match_states_clear(new_states, ppat->patterns_size, ppat->max_length);
for (i = 0; i < states->size; ++i)
{
- const size_t idx = states->states[i].idx;
- const size_t pos = states->states[i].pos;
+ const size_t idx = states->states[i].idx;
+ const size_t pos = states->states[i].pos;
if (!ppat->patterns[idx][pos])
- continue;
+ continue;
else if (ppat->patterns[idx][pos] == '*')
{
_edje_match_states_insert(states, ppat->max_length, idx, pos + 1);
}
else
{
- size_t m;
+ size_t m;
if (_edje_match_patterns_exec_token(ppat->patterns[idx] + pos,
*c,
&m) != EDJE_MATCH_OK)
- return NULL;
+ return NULL;
if (m)
- _edje_match_states_insert(new_states, ppat->max_length, idx, pos + m);
+ _edje_match_states_insert(new_states, ppat->max_length, idx, pos + m);
}
}
- {
- Edje_States *tmp = states;
+ {
+ Edje_States *tmp = states;
- states = new_states;
- new_states = tmp;
- }
+ states = new_states;
+ new_states = tmp;
+ }
}
return states;
}
Eina_Bool
-edje_match_collection_dir_exec(const Edje_Patterns *ppat,
- const char *string)
+edje_match_collection_dir_exec(const Edje_Patterns *ppat,
+ const char *string)
{
- Edje_States *result;
- Eina_Bool r = EINA_FALSE;
+ Edje_States *result;
+ Eina_Bool r = EINA_FALSE;
/* under high memory presure, it could be NULL */
if (!ppat) return EINA_FALSE;
result = _edje_match_fn(ppat, string, ppat->states);
if (result)
- r = _edje_match_collection_dir_exec_finals(ppat->finals, result);
+ r = _edje_match_collection_dir_exec_finals(ppat->finals, result);
return r;
}
Eina_Bool
-edje_match_programs_exec(const Edje_Patterns *ppat_signal,
- const Edje_Patterns *ppat_source,
- const char *sig,
- const char *source,
- Edje_Program **programs,
+edje_match_programs_exec(const Edje_Patterns *ppat_signal,
+ const Edje_Patterns *ppat_source,
+ const char *sig,
+ const char *source,
+ Edje_Program **programs,
Eina_Bool (*func)(Edje_Program *pr, void *data),
- void *data,
- Eina_Bool prop)
+ void *data,
+ Eina_Bool prop)
{
- Edje_States *signal_result;
- Edje_States *source_result;
- Eina_Bool r = EINA_FALSE;
+ Edje_States *signal_result;
+ Edje_States *source_result;
+ Eina_Bool r = EINA_FALSE;
/* under high memory presure, they could be NULL */
if (!ppat_source || !ppat_signal) return EINA_FALSE;
source_result = _edje_match_fn(ppat_source, source, ppat_source->states);
if (signal_result && source_result)
- r = edje_match_programs_exec_check_finals(ppat_signal->finals,
- ppat_source->finals,
- signal_result,
- source_result,
- programs,
- func,
- data,
- prop);
+ r = edje_match_programs_exec_check_finals(ppat_signal->finals,
+ ppat_source->finals,
+ signal_result,
+ source_result,
+ programs,
+ func,
+ data,
+ prop);
return r;
}
int
-edje_match_callback_exec(Edje_Patterns *ppat_signal,
- Edje_Patterns *ppat_source,
- const char *sig,
- const char *source,
- Eina_List *callbacks,
- Edje *ed,
- Eina_Bool prop
- )
+edje_match_callback_exec(Edje_Patterns *ppat_signal,
+ Edje_Patterns *ppat_source,
+ const char *sig,
+ const char *source,
+ Eina_List *callbacks,
+ Edje *ed,
+ Eina_Bool prop
+ )
{
- Edje_States *signal_result;
- Edje_States *source_result;
- int r = 0;
+ Edje_States *signal_result;
+ Edje_States *source_result;
+ int r = 0;
/* under high memory presure, they could be NULL */
if (!ppat_source || !ppat_signal) return 0;
source_result = _edje_match_fn(ppat_source, source, ppat_source->states);
if (signal_result && source_result)
- r = edje_match_callback_exec_check_finals(ppat_signal,
- ppat_source,
- ppat_signal->finals,
- ppat_source->finals,
- signal_result,
- source_result,
- sig,
- source,
- callbacks,
- ed,
- prop);
+ r = edje_match_callback_exec_check_finals(ppat_signal,
+ ppat_source,
+ ppat_signal->finals,
+ ppat_source->finals,
+ signal_result,
+ source_result,
+ sig,
+ source,
+ callbacks,
+ ed,
+ prop);
ppat_signal->ref--;
ppat_source->ref--;
if (ppat_signal->ref <= 0) edje_match_patterns_free(ppat_signal);
void
edje_match_patterns_free(Edje_Patterns *ppat)
{
- if (!ppat) return ;
+ if (!ppat) return;
ppat->delete_me = 1;
ppat->ref--;
static Eina_Rbtree_Direction
_edje_signal_source_node_cmp(const Edje_Signal_Source_Char *n1,
- const Edje_Signal_Source_Char *n2,
- __UNUSED__ void *data)
+ const Edje_Signal_Source_Char *n2,
+ __UNUSED__ void *data)
{
int cmp;
static int
_edje_signal_source_key_cmp(const Edje_Signal_Source_Char *node,
- const char *sig,
- __UNUSED__ int length,
- const char *source)
+ const char *sig,
+ __UNUSED__ int length,
+ const char *source)
{
int cmp;
return strcmp(node->source, source);
}
-
Eina_List *
-edje_match_program_hash_build(Edje_Program * const *programs,
- unsigned int count,
- Eina_Rbtree **tree)
+edje_match_program_hash_build(Edje_Program *const *programs,
+ unsigned int count,
+ Eina_Rbtree **tree)
{
Eina_List *result = NULL;
Eina_Rbtree *new = NULL;
for (i = 0; i < count; ++i)
{
- if (programs[i]->signal && !strpbrk(programs[i]->signal, "*?[\\")
- && programs[i]->source && !strpbrk(programs[i]->source, "*?[\\"))
- {
- Edje_Signal_Source_Char *item;
-
- item = (Edje_Signal_Source_Char*) eina_rbtree_inline_lookup(new, programs[i]->signal, 0,
- EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), programs[i]->source);
- if (!item)
- {
- item = malloc(sizeof (Edje_Signal_Source_Char));
- if (!item) continue;
-
- item->signal = programs[i]->signal;
- item->source = programs[i]->source;
- item->list = NULL;
-
- new = eina_rbtree_inline_insert(new, EINA_RBTREE_GET(item),
- EINA_RBTREE_CMP_NODE_CB(_edje_signal_source_node_cmp), NULL);
- }
-
- item->list = eina_list_prepend(item->list, programs[i]);
- }
- else
- result = eina_list_prepend(result, programs[i]);
+ if (programs[i]->signal && !strpbrk(programs[i]->signal, "*?[\\")
+ && programs[i]->source && !strpbrk(programs[i]->source, "*?[\\"))
+ {
+ Edje_Signal_Source_Char *item;
+
+ item = (Edje_Signal_Source_Char *)eina_rbtree_inline_lookup(new, programs[i]->signal, 0,
+ EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), programs[i]->source);
+ if (!item)
+ {
+ item = malloc(sizeof (Edje_Signal_Source_Char));
+ if (!item) continue;
+
+ item->signal = programs[i]->signal;
+ item->source = programs[i]->source;
+ item->list = NULL;
+
+ new = eina_rbtree_inline_insert(new, EINA_RBTREE_GET(item),
+ EINA_RBTREE_CMP_NODE_CB(_edje_signal_source_node_cmp), NULL);
+ }
+
+ item->list = eina_list_prepend(item->list, programs[i]);
+ }
+ else
+ result = eina_list_prepend(result, programs[i]);
}
*tree = new;
Eina_List *
edje_match_callback_hash_build(const Eina_List *callbacks,
- Eina_Rbtree **tree)
+ Eina_Rbtree **tree)
{
Eina_List *result = NULL;
Eina_Rbtree *new = NULL;
EINA_LIST_FOREACH(callbacks, l, callback)
{
- if (callback->signal && !strpbrk(callback->signal, "*?[\\")
- && callback->source && !strpbrk(callback->source, "*?[\\"))
- {
- Edje_Signal_Source_Char *item;
-
- item = (Edje_Signal_Source_Char*) eina_rbtree_inline_lookup(new, callback->signal, 0,
- EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), callback->source);
- if (!item)
- {
- item = malloc(sizeof (Edje_Signal_Source_Char));
- if (!item) continue;
-
- item->signal = callback->signal;
- item->source = callback->source;
- item->list = NULL;
-
- new = eina_rbtree_inline_insert(new, EINA_RBTREE_GET(item),
- EINA_RBTREE_CMP_NODE_CB(_edje_signal_source_node_cmp), NULL);
- }
-
- item->list = eina_list_prepend(item->list, callback);
- }
- else
- result = eina_list_prepend(result, callback);
+ if (callback->signal && !strpbrk(callback->signal, "*?[\\")
+ && callback->source && !strpbrk(callback->source, "*?[\\"))
+ {
+ Edje_Signal_Source_Char *item;
+
+ item = (Edje_Signal_Source_Char *)eina_rbtree_inline_lookup(new, callback->signal, 0,
+ EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), callback->source);
+ if (!item)
+ {
+ item = malloc(sizeof (Edje_Signal_Source_Char));
+ if (!item) continue;
+
+ item->signal = callback->signal;
+ item->source = callback->source;
+ item->list = NULL;
+
+ new = eina_rbtree_inline_insert(new, EINA_RBTREE_GET(item),
+ EINA_RBTREE_CMP_NODE_CB(_edje_signal_source_node_cmp), NULL);
+ }
+
+ item->list = eina_list_prepend(item->list, callback);
+ }
+ else
+ result = eina_list_prepend(result, callback);
}
*tree = new;
const Eina_List *
edje_match_signal_source_hash_get(const char *sig,
- const char *source,
- const Eina_Rbtree *tree)
+ const char *source,
+ const Eina_Rbtree *tree)
{
Edje_Signal_Source_Char *lookup;
- lookup = (Edje_Signal_Source_Char*) eina_rbtree_inline_lookup(tree, sig, 0,
- EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), source);
+ lookup = (Edje_Signal_Source_Char *)eina_rbtree_inline_lookup(tree, sig, 0,
+ EINA_RBTREE_CMP_KEY_CB(_edje_signal_source_key_cmp), source);
if (lookup) return lookup->list;
return NULL;
eina_list_free(key->list);
free(key);
}
+
static void _edje_param_copy(Edje_Real_Part *src_part, const char *src_param, Edje_Real_Part *dst_part, const char *dst_param);
static void _edje_param_set(Edje_Real_Part *part, const char *param, const char *value);
-int _edje_anim_count = 0;
+int _edje_anim_count = 0;
Ecore_Animator *_edje_timer = NULL;
-Eina_List *_edje_animators = NULL;
-
+Eina_List *_edje_animators = NULL;
/*============================================================================*
- * API *
- *============================================================================*/
+* API *
+*============================================================================*/
EAPI void
edje_frametime_set(double t)
}
void
-edje_object_propagate_callback_add(Evas_Object *obj, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data)
+edje_object_propagate_callback_add(Evas_Object *obj, void (*func)(void *data, Evas_Object *o, const char *emission, const char *source), void *data)
{
Edje *ed;
Edje_Signal_Callback *escb;
ed->callbacks = eina_list_append(ed->callbacks, escb);
if (ed->walking_callbacks)
{
- escb->just_added = 1;
- ed->just_added_callbacks = 1;
+ escb->just_added = 1;
+ ed->just_added_callbacks = 1;
}
else
_edje_callbacks_patterns_clean(ed);
}
EAPI void
-edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source), void *data)
+edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, void (*func)(void *data, Evas_Object *o, const char *emission, const char *source), void *data)
{
Edje *ed;
Edje_Signal_Callback *escb;
ed->callbacks = eina_list_append(ed->callbacks, escb);
if (ed->walking_callbacks)
{
- escb->just_added = 1;
- ed->just_added_callbacks = 1;
+ escb->just_added = 1;
+ ed->just_added_callbacks = 1;
}
else
_edje_callbacks_patterns_clean(ed);
}
EAPI void *
-edje_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func) (void *data, Evas_Object *o, const char *emission, const char *source))
+edje_object_signal_callback_del(Evas_Object *obj, const char *emission, const char *source, void (*func)(void *data, Evas_Object *o, const char *emission, const char *source))
{
Edje *ed;
Eina_List *l;
if (ed->delete_me) return NULL;
EINA_LIST_FOREACH(ed->callbacks, l, escb)
{
- if ((escb->func == func) &&
- ((!escb->signal && !emission[0]) ||
+ if ((escb->func == func) &&
+ ((!escb->signal && !emission[0]) ||
(escb->signal && !strcmp(escb->signal, emission))) &&
- ((!escb->source && !source[0]) ||
+ ((!escb->source && !source[0]) ||
(escb->source && !strcmp(escb->source, source))))
- {
- void *data;
-
- data = escb->data;
- if (ed->walking_callbacks)
- {
- escb->delete_me = 1;
- ed->delete_callbacks = 1;
- }
- else
- {
- _edje_callbacks_patterns_clean(ed);
-
- ed->callbacks = eina_list_remove_list(ed->callbacks, l);
- if (escb->signal) eina_stringshare_del(escb->signal);
- if (escb->source) eina_stringshare_del(escb->source);
- free(escb);
- }
- return data;
- }
+ {
+ void *data;
+
+ data = escb->data;
+ if (ed->walking_callbacks)
+ {
+ escb->delete_me = 1;
+ ed->delete_callbacks = 1;
+ }
+ else
+ {
+ _edje_callbacks_patterns_clean(ed);
+
+ ed->callbacks = eina_list_remove_list(ed->callbacks, l);
+ if (escb->signal) eina_stringshare_del(escb->signal);
+ if (escb->source) eina_stringshare_del(escb->source);
+ free(escb);
+ }
+ return data;
+ }
}
return NULL;
}
if (ed->delete_me) return NULL;
EINA_LIST_FOREACH(ed->callbacks, l, escb)
{
- if ((escb->func == func) && (escb->data == data) &&
- ((!escb->signal && !emission[0]) ||
+ if ((escb->func == func) && (escb->data == data) &&
+ ((!escb->signal && !emission[0]) ||
(escb->signal && !strcmp(escb->signal, emission))) &&
- ((!escb->source && !source[0]) ||
+ ((!escb->source && !source[0]) ||
(escb->source && !strcmp(escb->source, source))))
- {
- void *data2;
-
- data2 = escb->data;
- if (ed->walking_callbacks)
- {
- escb->delete_me = 1;
- ed->delete_callbacks = 1;
- }
- else
- {
- _edje_callbacks_patterns_clean(ed);
-
- ed->callbacks = eina_list_remove_list(ed->callbacks, l);
- if (escb->signal) eina_stringshare_del(escb->signal);
- if (escb->source) eina_stringshare_del(escb->source);
- free(escb);
- }
- return data2;
- }
+ {
+ void *data2;
+
+ data2 = escb->data;
+ if (ed->walking_callbacks)
+ {
+ escb->delete_me = 1;
+ ed->delete_callbacks = 1;
+ }
+ else
+ {
+ _edje_callbacks_patterns_clean(ed);
+
+ ed->callbacks = eina_list_remove_list(ed->callbacks, l);
+ if (escb->signal) eina_stringshare_del(escb->signal);
+ if (escb->source) eina_stringshare_del(escb->source);
+ free(escb);
+ }
+ return data2;
+ }
}
return NULL;
}
if (ed->delete_me) return;
if (play)
{
- if (!ed->paused) return;
- ed->paused = 0;
- t = ecore_time_get() - ed->paused_at;
- EINA_LIST_FOREACH(ed->actions, l, runp)
- runp->start_time += t;
+ if (!ed->paused) return;
+ ed->paused = 0;
+ t = ecore_time_get() - ed->paused_at;
+ EINA_LIST_FOREACH(ed->actions, l, runp)
+ runp->start_time += t;
}
else
{
- if (ed->paused) return;
- ed->paused = EINA_TRUE;
- ed->paused_at = ecore_time_get();
+ if (ed->paused) return;
+ ed->paused = EINA_TRUE;
+ ed->paused_at = ecore_time_get();
}
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_play_set(rp->swallowed_object, play);
+ Edje_Real_Part *rp;
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_play_set(rp->swallowed_object, play);
}
}
_edje_freeze(ed);
if (!on)
{
- Eina_List *newl = NULL;
- const void *data;
-
- EINA_LIST_FOREACH(ed->actions, l, data)
- newl = eina_list_append(newl, data);
- while (newl)
- {
- Edje_Running_Program *runp;
-
- runp = eina_list_data_get(newl);
- newl = eina_list_remove(newl, eina_list_data_get(newl));
- _edje_program_run_iterate(runp, runp->start_time + TO_DOUBLE(runp->program->tween.time));
- if (_edje_block_break(ed))
- {
- eina_list_free(newl);
- goto break_prog;
- }
- }
+ Eina_List *newl = NULL;
+ const void *data;
+
+ EINA_LIST_FOREACH(ed->actions, l, data)
+ newl = eina_list_append(newl, data);
+ while (newl)
+ {
+ Edje_Running_Program *runp;
+
+ runp = eina_list_data_get(newl);
+ newl = eina_list_remove(newl, eina_list_data_get(newl));
+ _edje_program_run_iterate(runp, runp->start_time + TO_DOUBLE(runp->program->tween.time));
+ if (_edje_block_break(ed))
+ {
+ eina_list_free(newl);
+ goto break_prog;
+ }
+ }
}
else
{
- _edje_emit(ed, "load", NULL);
- if (evas_object_visible_get(obj))
- {
- evas_object_hide(obj);
- evas_object_show(obj);
- }
+ _edje_emit(ed, "load", NULL);
+ if (evas_object_visible_get(obj))
+ {
+ evas_object_hide(obj);
+ evas_object_show(obj);
+ }
}
- break_prog:
+break_prog:
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_animation_set(rp->swallowed_object, on);
+ Edje_Real_Part *rp;
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_animation_set(rp->swallowed_object, on);
}
_edje_thaw(ed);
_edje_unblock(ed);
}
-
EAPI Eina_Bool
edje_object_animation_get(const Evas_Object *obj)
{
if (t > FROM_INT(1)) t = FROM_INT(1);
EINA_LIST_FOREACH(runp->program->targets, l, pt)
{
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp) _edje_part_pos_set(ed, rp,
- runp->program->tween.mode, t,
- runp->program->tween.v1,
- runp->program->tween.v2);
- }
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ _edje_part_pos_set(ed, rp,
+ runp->program->tween.mode, t,
+ runp->program->tween.v1,
+ runp->program->tween.v2);
+ }
}
if (t >= FROM_INT(1))
{
Edje_Program_After *pa;
EINA_LIST_FOREACH(runp->program->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp)
- {
- _edje_part_description_apply(ed, rp,
- runp->program->state,
- runp->program->value,
- NULL,
- 0.0);
- _edje_part_pos_set(ed, rp,
- runp->program->tween.mode, ZERO,
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ {
+ _edje_part_description_apply(ed, rp,
+ runp->program->state,
+ runp->program->value,
+ NULL,
+ 0.0);
+ _edje_part_pos_set(ed, rp,
+ runp->program->tween.mode, ZERO,
runp->program->tween.v1,
runp->program->tween.v2);
- rp->program = NULL;
- }
- }
- }
- _edje_recalc(ed);
- runp->delete_me = 1;
- if (!ed->walking_actions)
- {
- _edje_anim_count--;
- ed->actions = eina_list_remove(ed->actions, runp);
- if (!ed->actions)
- _edje_animators = eina_list_remove(_edje_animators, ed);
- }
+ rp->program = NULL;
+ }
+ }
+ }
+ _edje_recalc(ed);
+ runp->delete_me = 1;
+ if (!ed->walking_actions)
+ {
+ _edje_anim_count--;
+ ed->actions = eina_list_remove(ed->actions, runp);
+ if (!ed->actions)
+ _edje_animators = eina_list_remove(_edje_animators, ed);
+ }
// _edje_emit(ed, "program,stop", runp->program->name);
- if (_edje_block_break(ed))
- {
- if (!ed->walking_actions) free(runp);
- goto break_prog;
- }
- EINA_LIST_FOREACH(runp->program->after, l, pa)
- {
- Edje_Program *pr;
-
- if (pa->id >= 0)
- {
- pr = ed->table_programs[pa->id % ed->table_programs_size];
- if (pr) _edje_program_run(ed, pr, 0, "", "");
- if (_edje_block_break(ed))
- {
- if (!ed->walking_actions) free(runp);
- goto break_prog;
- }
- }
- }
- _edje_thaw(ed);
- _edje_unref(ed);
- if (!ed->walking_actions) free(runp);
- _edje_unblock(ed);
- return EINA_FALSE;
+ if (_edje_block_break(ed))
+ {
+ if (!ed->walking_actions) free(runp);
+ goto break_prog;
+ }
+ EINA_LIST_FOREACH(runp->program->after, l, pa)
+ {
+ Edje_Program *pr;
+
+ if (pa->id >= 0)
+ {
+ pr = ed->table_programs[pa->id % ed->table_programs_size];
+ if (pr) _edje_program_run(ed, pr, 0, "", "");
+ if (_edje_block_break(ed))
+ {
+ if (!ed->walking_actions) free(runp);
+ goto break_prog;
+ }
+ }
+ }
+ _edje_thaw(ed);
+ _edje_unref(ed);
+ if (!ed->walking_actions) free(runp);
+ _edje_unblock(ed);
+ return EINA_FALSE;
}
- break_prog:
+break_prog:
_edje_recalc(ed);
_edje_thaw(ed);
_edje_unref(ed);
_edje_freeze(ed);
EINA_LIST_FOREACH(runp->program->targets, l, pt)
{
- Edje_Real_Part *rp;
-
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp)
- {
- _edje_part_description_apply(ed, rp,
- runp->program->state,
- runp->program->value,
- NULL,
- 0.0);
- _edje_part_pos_set(ed, rp,
- runp->program->tween.mode, ZERO,
+ Edje_Real_Part *rp;
+
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ {
+ _edje_part_description_apply(ed, rp,
+ runp->program->state,
+ runp->program->value,
+ NULL,
+ 0.0);
+ _edje_part_pos_set(ed, rp,
+ runp->program->tween.mode, ZERO,
runp->program->tween.v1,
runp->program->tween.v2);
- rp->program = NULL;
- }
- }
+ rp->program = NULL;
+ }
+ }
}
_edje_recalc(ed);
runp->delete_me = 1;
// pname = runp->program->name;
if (!ed->walking_actions)
{
- _edje_anim_count--;
- ed->actions = eina_list_remove(ed->actions, runp);
- free_runp = 1;
- if (!ed->actions)
- {
- _edje_animators = eina_list_remove(_edje_animators, ed);
- }
+ _edje_anim_count--;
+ ed->actions = eina_list_remove(ed->actions, runp);
+ free_runp = 1;
+ if (!ed->actions)
+ {
+ _edje_animators = eina_list_remove(_edje_animators, ed);
+ }
}
// _edje_emit(ed, "program,stop", pname);
_edje_thaw(ed);
if (ed->delete_me) return;
if ((pr->in.from > 0.0) && (pr->in.range >= 0.0) && (!force))
{
- Edje_Pending_Program *pp;
- double r = 0.0;
-
- pp = calloc(1, sizeof(Edje_Pending_Program));
- if (!pp) return;
- if (pr->in.range > 0.0) r = ((double)rand() / RAND_MAX);
- pp->timer = ecore_timer_add(pr->in.from + (pr->in.range * r),
- _edje_pending_timer_cb, pp);
- if (!pp->timer)
- {
- free(pp);
- return;
- }
- pp->edje = ed;
- pp->program = pr;
- ed->pending_actions = eina_list_append(ed->pending_actions, pp);
- return;
+ Edje_Pending_Program *pp;
+ double r = 0.0;
+
+ pp = calloc(1, sizeof(Edje_Pending_Program));
+ if (!pp) return;
+ if (pr->in.range > 0.0) r = ((double)rand() / RAND_MAX);
+ pp->timer = ecore_timer_add(pr->in.from + (pr->in.range * r),
+ _edje_pending_timer_cb, pp);
+ if (!pp->timer)
+ {
+ free(pp);
+ return;
+ }
+ pp->edje = ed;
+ pp->program = pr;
+ ed->pending_actions = eina_list_append(ed->pending_actions, pp);
+ return;
}
if ((recursions >= 64) || (recursion_limit))
{
- ERR("Programs recursing up to recursion limit of %i in '%s' with '%s', '%s' from '%s', '%s'. Disabled.",
- 64, pr->name, ssig, ssrc, ed->path, ed->group);
- recursion_limit = 1;
- return;
+ ERR("Programs recursing up to recursion limit of %i in '%s' with '%s', '%s' from '%s', '%s'. Disabled.",
+ 64, pr->name, ssig, ssrc, ed->path, ed->group);
+ recursion_limit = 1;
+ return;
}
recursions++;
_edje_block(ed);
_edje_freeze(ed);
switch (pr->action)
{
- case EDJE_ACTION_TYPE_STATE_SET:
- if ((pr->tween.time > ZERO) && (!ed->no_anim))
- {
- Edje_Running_Program *runp;
-
- runp = calloc(1, sizeof(Edje_Running_Program));
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp)
- {
+ case EDJE_ACTION_TYPE_STATE_SET:
+ if ((pr->tween.time > ZERO) && (!ed->no_anim))
+ {
+ Edje_Running_Program *runp;
+
+ runp = calloc(1, sizeof(Edje_Running_Program));
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ {
if ((rp->object) && (pr->tween.mode & EDJE_TWEEN_MODE_OPT_FROM_CURRENT))
{
Edje_Calc_Params *tmp;
tmp = calloc(1, sizeof(Edje_Calc_Params));
if (!tmp) goto low_mem_current;
- _edje_part_recalc(ed, rp, FLAG_XY, tmp);
+ _edje_part_recalc(ed, rp, FLAG_XY, tmp);
if (rp->current) free(rp->current);
rp->current = tmp;
-
- rp->current->x -= ed->x;
- rp->current->y -= ed->y;
- rp->current->map.center.x -= ed->x;
- rp->current->map.center.y -= ed->y;
- rp->current->map.light.x -= ed->x;
- rp->current->map.light.y -= ed->y;
- rp->current->map.persp.x -= ed->x;
- rp->current->map.persp.y -= ed->y;
}
else
{
- low_mem_current:
+low_mem_current:
if (rp->current) free(rp->current);
rp->current = NULL;
}
- if (rp->program)
+ if (rp->program)
_edje_program_end(ed, rp->program);
- _edje_part_description_apply(ed, rp,
- rp->param1.description->state.name,
- rp->param1.description->state.value,
- pr->state,
- pr->value);
- _edje_part_pos_set(ed, rp, pr->tween.mode, ZERO,
+ _edje_part_description_apply(ed, rp,
+ rp->param1.description->state.name,
+ rp->param1.description->state.value,
+ pr->state,
+ pr->value);
+ _edje_part_pos_set(ed, rp, pr->tween.mode, ZERO,
pr->tween.v1,
pr->tween.v2);
- rp->program = runp;
- }
- }
- }
+ rp->program = runp;
+ }
+ }
+ }
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed))
- {
- ed->actions = eina_list_append(ed->actions, runp);
- goto break_prog;
- }
- if (!ed->actions)
- _edje_animators = eina_list_append(_edje_animators, ed);
- ed->actions = eina_list_append(ed->actions, runp);
- runp->start_time = ecore_loop_time_get();
- runp->edje = ed;
- runp->program = pr;
- if (!_edje_timer)
- _edje_timer = ecore_animator_add(_edje_timer_cb, NULL);
- _edje_anim_count++;
- }
- else
- {
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp)
- {
- if (rp->program)
+ if (_edje_block_break(ed))
+ {
+ ed->actions = eina_list_append(ed->actions, runp);
+ goto break_prog;
+ }
+ if (!ed->actions)
+ _edje_animators = eina_list_append(_edje_animators, ed);
+ ed->actions = eina_list_append(ed->actions, runp);
+ runp->start_time = ecore_loop_time_get();
+ runp->edje = ed;
+ runp->program = pr;
+ if (!_edje_timer)
+ _edje_timer = ecore_animator_add(_edje_timer_cb, NULL);
+ _edje_anim_count++;
+ }
+ else
+ {
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ {
+ if (rp->program)
_edje_program_end(ed, rp->program);
- _edje_part_description_apply(ed, rp,
- pr->state,
- pr->value,
- NULL,
- 0.0);
- _edje_part_pos_set(ed, rp, pr->tween.mode, ZERO,
+ _edje_part_description_apply(ed, rp,
+ pr->state,
+ pr->value,
+ NULL,
+ 0.0);
+ _edje_part_pos_set(ed, rp, pr->tween.mode, ZERO,
pr->tween.v1,
pr->tween.v2);
- }
- }
- }
+ }
+ }
+ }
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
-
- EINA_LIST_FOREACH(pr->after, l, pa)
- {
- if (pa->id >= 0)
- {
- pr2 = ed->table_programs[pa->id % ed->table_programs_size];
- if (pr2) _edje_program_run(ed, pr2, 0, "", "");
- if (_edje_block_break(ed)) goto break_prog;
- }
- }
- _edje_recalc(ed);
- }
+ if (_edje_block_break(ed)) goto break_prog;
+
+ EINA_LIST_FOREACH(pr->after, l, pa)
+ {
+ if (pa->id >= 0)
+ {
+ pr2 = ed->table_programs[pa->id % ed->table_programs_size];
+ if (pr2) _edje_program_run(ed, pr2, 0, "", "");
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ }
+ _edje_recalc(ed);
+ }
break;
- case EDJE_ACTION_TYPE_ACTION_STOP:
+
+ case EDJE_ACTION_TYPE_ACTION_STOP:
// _edje_emit(ed, "program,start", pr->name);
EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- Eina_List *ll;
- Edje_Running_Program *runp;
- Edje_Pending_Program *pp;
+ {
+ Eina_List *ll;
+ Edje_Running_Program *runp;
+ Edje_Pending_Program *pp;
for (ll = ed->actions; ll; )
{
runp = ll->data;
ll = ll->next;
- if (pt->id == runp->program->id)
- {
- _edje_program_end(ed, runp);
+ if (pt->id == runp->program->id)
+ {
+ _edje_program_end(ed, runp);
// goto done;
- }
- }
+ }
+ }
for (ll = ed->pending_actions; ll; )
- {
+ {
pp = ll->data;
ll = ll->next;
- if (pt->id == pp->program->id)
- {
- ed->pending_actions = eina_list_remove(ed->pending_actions, pp);
- ecore_timer_del(pp->timer);
- free(pp);
+ if (pt->id == pp->program->id)
+ {
+ ed->pending_actions = eina_list_remove(ed->pending_actions, pp);
+ ecore_timer_del(pp->timer);
+ free(pp);
// goto done;
- }
- }
+ }
+ }
// done:
// continue;
- }
+ }
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
break;
- case EDJE_ACTION_TYPE_SIGNAL_EMIT:
+
+ case EDJE_ACTION_TYPE_SIGNAL_EMIT:
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- _edje_emit(ed, pr->state, pr->state2);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
+ _edje_emit(ed, pr->state, pr->state2);
+ if (_edje_block_break(ed)) goto break_prog;
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
break;
- case EDJE_ACTION_TYPE_DRAG_VAL_SET:
+
+ case EDJE_ACTION_TYPE_DRAG_VAL_SET:
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
- {
- rp->drag->val.x = pr->value;
- rp->drag->val.y = pr->value2;
- if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
- else if (rp->drag->val.x > 1.0) rp->drag->val.x = 1.0;
- if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
- else if (rp->drag->val.y > 1.0) rp->drag->val.y = 1.0;
- _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
- _edje_emit(ed, "drag,set", rp->part->name);
- if (_edje_block_break(ed)) goto break_prog;
- }
- }
- }
+ if (_edje_block_break(ed)) goto break_prog;
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
+ {
+ rp->drag->val.x = pr->value;
+ rp->drag->val.y = pr->value2;
+ if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
+ else if (rp->drag->val.x > 1.0)
+ rp->drag->val.x = 1.0;
+ if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
+ else if (rp->drag->val.y > 1.0)
+ rp->drag->val.y = 1.0;
+ _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
+ _edje_emit(ed, "drag,set", rp->part->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ }
+ }
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
break;
- case EDJE_ACTION_TYPE_DRAG_VAL_STEP:
+
+ case EDJE_ACTION_TYPE_DRAG_VAL_STEP:
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
- {
- rp->drag->val.x += pr->value * rp->drag->step.x * rp->part->dragable.x;
- rp->drag->val.y += pr->value2 * rp->drag->step.y * rp->part->dragable.y;
- if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
- else if (rp->drag->val.x > 1.0) rp->drag->val.x = 1.0;
- if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
- else if (rp->drag->val.y > 1.0) rp->drag->val.y = 1.0;
- _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
- _edje_emit(ed, "drag,step", rp->part->name);
- if (_edje_block_break(ed)) goto break_prog;
- }
- }
- }
+ if (_edje_block_break(ed)) goto break_prog;
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
+ {
+ rp->drag->val.x += pr->value * rp->drag->step.x * rp->part->dragable.x;
+ rp->drag->val.y += pr->value2 * rp->drag->step.y * rp->part->dragable.y;
+ if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
+ else if (rp->drag->val.x > 1.0)
+ rp->drag->val.x = 1.0;
+ if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
+ else if (rp->drag->val.y > 1.0)
+ rp->drag->val.y = 1.0;
+ _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
+ _edje_emit(ed, "drag,step", rp->part->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ }
+ }
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
break;
- case EDJE_ACTION_TYPE_DRAG_VAL_PAGE:
+
+ case EDJE_ACTION_TYPE_DRAG_VAL_PAGE:
// _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
- {
- rp->drag->val.x += pr->value * rp->drag->page.x * rp->part->dragable.x;
- rp->drag->val.y += pr->value2 * rp->drag->page.y * rp->part->dragable.y;
- if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
- else if (rp->drag->val.x > 1.0) rp->drag->val.x = 1.0;
- if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
- else if (rp->drag->val.y > 1.0) rp->drag->val.y = 1.0;
- _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
- _edje_emit(ed, "drag,page", rp->part->name);
- if (_edje_block_break(ed)) goto break_prog;
- }
- }
- }
+ if (_edje_block_break(ed)) goto break_prog;
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if ((rp) && (rp->drag) && (rp->drag->down.count == 0))
+ {
+ rp->drag->val.x += pr->value * rp->drag->page.x * rp->part->dragable.x;
+ rp->drag->val.y += pr->value2 * rp->drag->page.y * rp->part->dragable.y;
+ if (rp->drag->val.x < 0.0) rp->drag->val.x = 0.0;
+ else if (rp->drag->val.x > 1.0)
+ rp->drag->val.x = 1.0;
+ if (rp->drag->val.y < 0.0) rp->drag->val.y = 0.0;
+ else if (rp->drag->val.y > 1.0)
+ rp->drag->val.y = 1.0;
+ _edje_dragable_pos_set(ed, rp, rp->drag->val.x, rp->drag->val.y);
+ _edje_emit(ed, "drag,page", rp->part->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ }
+ }
// _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
+ if (_edje_block_break(ed)) goto break_prog;
break;
- case EDJE_ACTION_TYPE_SCRIPT:
- {
- char fname[128];
- // _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- snprintf(fname, sizeof(fname), "_p%i", pr->id);
- _edje_embryo_test_run(ed, fname, ssig, ssrc);
- // _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- _edje_recalc_do(ed);
+ case EDJE_ACTION_TYPE_SCRIPT:
+ {
+ char fname[128];
+
+ // _edje_emit(ed, "program,start", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ snprintf(fname, sizeof(fname), "_p%i", pr->id);
+ _edje_embryo_test_run(ed, fname, ssig, ssrc);
+ // _edje_emit(ed, "program,stop", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ _edje_recalc_do(ed);
+ }
+ break;
+
+ case EDJE_ACTION_TYPE_FOCUS_SET:
+ if (!pr->targets)
+ ed->focused_part = NULL;
+ else
+ {
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp)
+ {
+ if (ed->focused_part != rp)
+ {
+ if (ed->focused_part)
+ _edje_emit(ed, "focus,part,out",
+ ed->focused_part->part->name);
+ ed->focused_part = rp;
+ _edje_emit(ed, "focus,part,in",
+ ed->focused_part->part->name);
+ }
+ }
+ }
+ }
}
break;
- case EDJE_ACTION_TYPE_FOCUS_SET:
- if (!pr->targets)
- ed->focused_part = NULL;
- else
- {
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp)
- {
- if (ed->focused_part != rp)
- {
- if (ed->focused_part)
- _edje_emit(ed, "focus,part,out",
- ed->focused_part->part->name);
- ed->focused_part = rp;
- _edje_emit(ed, "focus,part,in",
- ed->focused_part->part->name);
- }
- }
- }
- }
- }
- break;
- case EDJE_ACTION_TYPE_FOCUS_OBJECT:
- if (!pr->targets)
- {
- Evas_Object *focused;
-
- focused = evas_focus_get(evas_object_evas_get(ed->obj));
- if (focused)
- {
- unsigned int i;
-
- /* Check if the current swallowed object is one of my child. */
- for (i = 0; i < ed->table_parts_size; ++i)
- {
- rp = ed->table_parts[i];
- if (rp && rp->swallowed_object == focused)
- {
- evas_object_focus_set(focused, EINA_FALSE);
- break;
- }
- }
- }
- }
- else
- {
- EINA_LIST_FOREACH(pr->targets, l, pt)
- {
- if (pt->id >= 0)
- {
- rp = ed->table_parts[pt->id % ed->table_parts_size];
- if (rp && rp->swallowed_object)
- evas_object_focus_set(rp->swallowed_object, EINA_TRUE);
- }
- }
- }
+
+ case EDJE_ACTION_TYPE_FOCUS_OBJECT:
+ if (!pr->targets)
+ {
+ Evas_Object *focused;
+
+ focused = evas_focus_get(evas_object_evas_get(ed->obj));
+ if (focused)
+ {
+ unsigned int i;
+
+ /* Check if the current swallowed object is one of my child. */
+ for (i = 0; i < ed->table_parts_size; ++i)
+ {
+ rp = ed->table_parts[i];
+ if (rp && rp->swallowed_object == focused)
+ {
+ evas_object_focus_set(focused, EINA_FALSE);
+ break;
+ }
+ }
+ }
+ }
+ else
+ {
+ EINA_LIST_FOREACH(pr->targets, l, pt)
+ {
+ if (pt->id >= 0)
+ {
+ rp = ed->table_parts[pt->id % ed->table_parts_size];
+ if (rp && rp->swallowed_object)
+ evas_object_focus_set(rp->swallowed_object, EINA_TRUE);
+ }
+ }
+ }
break;
- case EDJE_ACTION_TYPE_SOUND_SAMPLE:
+
+ case EDJE_ACTION_TYPE_SOUND_SAMPLE:
if (_edje_block_break(ed))
goto break_prog;
_edje_multisense_internal_sound_sample_play(ed, pr->sample_name, pr->speed);
break;
- case EDJE_ACTION_TYPE_SOUND_TONE:
+
+ case EDJE_ACTION_TYPE_SOUND_TONE:
if (_edje_block_break(ed))
goto break_prog;
_edje_multisense_internal_sound_tone_play(ed, pr->tone_name, pr->duration);
break;
- case EDJE_ACTION_TYPE_PARAM_COPY:
- {
- Edje_Real_Part *src_part, *dst_part;
- // _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
-
- src_part = ed->table_parts[pr->param.src % ed->table_parts_size];
- dst_part = ed->table_parts[pr->param.dst % ed->table_parts_size];
- _edje_param_copy(src_part, pr->state, dst_part, pr->state2);
-
- if (_edje_block_break(ed)) goto break_prog;
- // _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- }
- break;
- case EDJE_ACTION_TYPE_PARAM_SET:
- {
- Edje_Real_Part *part;
+ case EDJE_ACTION_TYPE_PARAM_COPY:
+ {
+ Edje_Real_Part *src_part, *dst_part;
- // _edje_emit(ed, "program,start", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
-
- part = ed->table_parts[pr->param.dst % ed->table_parts_size];
- _edje_param_set(part, pr->state, pr->state2);
-
- if (_edje_block_break(ed)) goto break_prog;
- // _edje_emit(ed, "program,stop", pr->name);
- if (_edje_block_break(ed)) goto break_prog;
- }
- break;
- default:
+ // _edje_emit(ed, "program,start", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+
+ src_part = ed->table_parts[pr->param.src % ed->table_parts_size];
+ dst_part = ed->table_parts[pr->param.dst % ed->table_parts_size];
+ _edje_param_copy(src_part, pr->state, dst_part, pr->state2);
+
+ if (_edje_block_break(ed)) goto break_prog;
+ // _edje_emit(ed, "program,stop", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ break;
+
+ case EDJE_ACTION_TYPE_PARAM_SET:
+ {
+ Edje_Real_Part *part;
+
+ // _edje_emit(ed, "program,start", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+
+ part = ed->table_parts[pr->param.dst % ed->table_parts_size];
+ _edje_param_set(part, pr->state, pr->state2);
+
+ if (_edje_block_break(ed)) goto break_prog;
+ // _edje_emit(ed, "program,stop", pr->name);
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ break;
+
+ default:
// _edje_emit(ed, "program,start", pr->name);
// _edje_emit(ed, "program,stop", pr->name);
break;
}
if (!((pr->action == EDJE_ACTION_TYPE_STATE_SET)
- /* hmm this fucks somethgin up. must look into it later */
- /* && (pr->tween.time > ZERO) && (!ed->no_anim))) */
- ))
+ /* hmm this fucks somethgin up. must look into it later */
+ /* && (pr->tween.time > ZERO) && (!ed->no_anim))) */
+ ))
{
EINA_LIST_FOREACH(pr->after, l, pa)
- {
- if (pa->id >= 0)
- {
- pr2 = ed->table_programs[pa->id % ed->table_programs_size];
- if (pr2) _edje_program_run(ed, pr2, 0, "", "");
- if (_edje_block_break(ed)) goto break_prog;
- }
- }
+ {
+ if (pa->id >= 0)
+ {
+ pr2 = ed->table_programs[pa->id % ed->table_programs_size];
+ if (pr2) _edje_program_run(ed, pr2, 0, "", "");
+ if (_edje_block_break(ed)) goto break_prog;
+ }
+ }
}
- break_prog:
+break_prog:
_edje_thaw(ed);
_edje_unref(ed);
recursions--;
char *alias;
alias = eina_hash_find(ed->collection->alias, part);
- if (alias) {
- char *aliased;
- int alien;
- int nslen;
-
- alien = strlen(alias);
- nslen = strlen(newsig);
- length = alien + nslen + 2;
-
- aliased = alloca(length);
- memcpy(aliased, alias, alien);
- aliased[alien] = EDJE_PART_PATH_SEPARATOR;
- memcpy(aliased + alien + 1, newsig, nslen + 1);
-
- _edje_emit(ed, aliased, src);
- return;
- }
+ if (alias)
+ {
+ char *aliased;
+ int alien;
+ int nslen;
+
+ alien = strlen(alias);
+ nslen = strlen(newsig);
+ length = alien + nslen + 2;
+
+ aliased = alloca(length);
+ memcpy(aliased, alias, alien);
+ aliased[alien] = EDJE_PART_PATH_SEPARATOR;
+ memcpy(aliased + alien + 1, newsig, nslen + 1);
+
+ _edje_emit(ed, aliased, src);
+ return;
+ }
}
/* search for the index if present and remove it from the part */
{
char *tmp;
- tmp = alloca(end - idx - 1);
+ tmp = alloca(end - idx);
memcpy(tmp, idx + 1, end - idx - 1);
tmp[end - idx - 1] = '\0';
*idx = '\0';
switch (rp->part->type)
{
case EDJE_PART_TYPE_GROUP:
- if (!rp->swallowed_object) goto end;
- ed2 = _edje_fetch(rp->swallowed_object);
- if (!ed2) goto end;
+ if (!rp->swallowed_object) goto end;
+ ed2 = _edje_fetch(rp->swallowed_object);
+ if (!ed2) goto end;
- _edje_emit(ed2, newsig, src);
- broadcast = EINA_FALSE;
- break;
+ _edje_emit(ed2, newsig, src);
+ broadcast = EINA_FALSE;
+ break;
case EDJE_PART_TYPE_EXTERNAL:
- if (!rp->swallowed_object) break ;
-
- if (!idx)
- {
- _edje_external_signal_emit(rp->swallowed_object, newsig, src);
- }
- else
- {
- Evas_Object *child;
-
- child = _edje_children_get(rp, idx);
- ed2 = _edje_fetch(child);
- if (!ed2) goto end;
- _edje_emit(ed2, newsig, src);
- }
- broadcast = EINA_FALSE;
- break ;
+ if (!rp->swallowed_object) break;
+
+ if (!idx)
+ {
+ _edje_external_signal_emit(rp->swallowed_object, newsig, src);
+ }
+ else
+ {
+ Evas_Object *child;
+
+ child = _edje_children_get(rp, idx);
+ ed2 = _edje_fetch(child);
+ if (!ed2) goto end;
+ _edje_emit(ed2, newsig, src);
+ }
+ broadcast = EINA_FALSE;
+ break;
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_TABLE:
- if (idx)
- {
- Evas_Object *child;
-
- child = _edje_children_get(rp, idx);
- ed2 = _edje_fetch(child);
- if (!ed2) goto end;
- _edje_emit(ed2, newsig, src);
- broadcast = EINA_FALSE;
- }
- break ;
+ if (idx)
+ {
+ Evas_Object *child;
+
+ child = _edje_children_get(rp, idx);
+ ed2 = _edje_fetch(child);
+ if (!ed2) goto end;
+ _edje_emit(ed2, newsig, src);
+ broadcast = EINA_FALSE;
+ }
+ break;
default:
// ERR("SPANK SPANK SPANK !!!\nYou should never be here !");
- break;
+ break;
}
}
- end:
+end:
emsg.sig = sig;
emsg.src = src;
if (data)
struct _Edje_Program_Data
{
- Eina_List *matches;
- Edje *ed;
- const char *source;
+ Eina_List *matches;
+ Edje *ed;
+ const char *source;
};
-static Eina_Bool _edje_glob_callback(Edje_Program *pr, void *dt)
+static Eina_Bool
+_edje_glob_callback(Edje_Program *pr, void *dt)
{
struct _Edje_Program_Data *data = dt;
Edje_Real_Part *rp = NULL;
if (pr->filter.state)
{
- rp = _edje_real_part_get(data->ed, pr->filter.part ? pr->filter.part : data->source);
- if (rp)
- exec = (rp->chosen_description->state.name == pr->filter.state);
+ rp = _edje_real_part_get(data->ed, pr->filter.part ? pr->filter.part : data->source);
+ if (rp)
+ exec = !strcmp(rp->chosen_description->state.name, pr->filter.state);
}
pr->exec = exec;
void
_edje_callbacks_patterns_clean(Edje *ed)
{
+ if (ed->walking_callbacks > 0) return;
+
_edje_signals_sources_patterns_clean(&ed->patterns.callbacks);
eina_rbtree_delete(ed->patterns.callbacks.exact_match,
- EINA_RBTREE_FREE_CB(edje_match_signal_source_free),
- NULL);
+ EINA_RBTREE_FREE_CB(edje_match_signal_source_free),
+ NULL);
ed->patterns.callbacks.exact_match = NULL;
ed->patterns.callbacks.u.callbacks.globing = eina_list_free(ed->patterns.callbacks.u.callbacks.globing);
return;
ssp->u.callbacks.globing = edje_match_callback_hash_build(ed->callbacks,
- &ssp->exact_match);
+ &ssp->exact_match);
ssp->signals_patterns = edje_match_callback_signal_init(ssp->u.callbacks.globing);
ssp->sources_patterns = edje_match_callback_source_init(ssp->u.callbacks.globing);
_edje_block(ed);
_edje_ref(ed);
_edje_freeze(ed);
-
+
if (ed->collection && ed->L)
_edje_lua2_script_func_signal(ed, sig, src);
if (ed->collection)
{
#ifdef EDJE_PROGRAM_CACHE
- Edje_Part_Collection *ec;
- char *tmps;
- int l1, l2;
+ Edje_Part_Collection *ec;
+ char *tmps;
+ int l1, l2;
#endif
- int done;
+ int done;
#ifdef EDJE_PROGRAM_CACHE
- ec = ed->collection;
- l1 = strlen(sig);
- l2 = strlen(src);
- tmps = alloca(l1 + l2 + 3); /* \0, \337, \0 */
- strcpy(tmps, sig);
- tmps[l1] = '\377';
- strcpy(&(tmps[l1 + 1]), src);
+ ec = ed->collection;
+ l1 = strlen(sig);
+ l2 = strlen(src);
+ tmps = alloca(l1 + l2 + 3); /* \0, \337, \0 */
+ strcpy(tmps, sig);
+ tmps[l1] = '\377';
+ strcpy(&(tmps[l1 + 1]), src);
#endif
- done = 0;
+ done = 0;
#ifdef EDJE_PROGRAM_CACHE
- {
- Eina_List *matches;
- Eina_List *l;
- Edje_Program *pr;
-
- if (eina_hash_find(ec->prog_cache.no_matches, tmps))
- {
- done = 1;
- }
- else if ((matches = eina_hash_find(ec->prog_cache.matches, tmps)))
- {
- EINA_LIST_FOREACH(matches, l, pr)
- {
- Eina_Bool exec = EINA_TRUE;
-
- if (pr->filter.state)
+ {
+ Eina_List *matches;
+ Eina_List *l;
+ Edje_Program *pr;
+
+ if (eina_hash_find(ec->prog_cache.no_matches, tmps))
+ {
+ done = 1;
+ }
+ else if ((matches = eina_hash_find(ec->prog_cache.matches, tmps)))
+ {
+ EINA_LIST_FOREACH(matches, l, pr)
+ {
+ Eina_Bool exec = EINA_TRUE;
+
+ if (pr->filter.state)
+ {
+ Edje_Real_Part *rp;
+
+ rp = _edje_real_part_get(ed, pr->filter.part ? pr->filter.part : src);
+ if (rp)
+ {
+ if (rp->program)
+ exec = EINA_FALSE;
+ else
+ exec = (rp->chosen_description->state.name == pr->filter.state);
+ }
+ }
+
+ pr->exec = exec;
+ }
+
+ EINA_LIST_FOREACH(matches, l, pr)
+ if (pr->exec)
+ {
+ _edje_program_run(ed, pr, 0, sig, src);
+ if (_edje_block_break(ed))
{
- Edje_Real_Part *rp;
-
- rp = _edje_real_part_get(ed, pr->filter.part ? pr->filter.part : src);
- if (rp)
- {
- if (rp->program)
- exec = EINA_FALSE;
- else
- exec = (rp->chosen_description->state.name == pr->filter.state);
- }
+ goto break_prog;
}
+ }
- pr->exec = exec;
- }
-
- EINA_LIST_FOREACH(matches, l, pr)
- if (pr->exec)
- {
- _edje_program_run(ed, pr, 0, sig, src);
- if (_edje_block_break(ed))
- {
- goto break_prog;
- }
- }
-
- done = 1;
- }
- }
+ done = 1;
+ }
+ }
#endif
- if (!done)
- {
- struct _Edje_Program_Data data;
+ if (!done)
+ {
+ struct _Edje_Program_Data data;
data.ed = ed;
data.source = src;
- data.matches = NULL;
+ data.matches = NULL;
if (ed->table_programs_size > 0)
{
- const Eina_List *match;
- const Eina_List *l;
- Edje_Program *pr;
-
- if (ed->patterns.programs.u.programs.globing)
- if (edje_match_programs_exec(ed->patterns.programs.signals_patterns,
- ed->patterns.programs.sources_patterns,
- sig,
- src,
- ed->patterns.programs.u.programs.globing,
- _edje_glob_callback,
- &data,
+ const Eina_List *match;
+ const Eina_List *l;
+ Edje_Program *pr;
+
+ if (ed->patterns.programs.u.programs.globing)
+ if (edje_match_programs_exec(ed->patterns.programs.signals_patterns,
+ ed->patterns.programs.sources_patterns,
+ sig,
+ src,
+ ed->patterns.programs.u.programs.globing,
+ _edje_glob_callback,
+ &data,
prop) == 0)
- goto break_prog;
+ goto break_prog;
- match = edje_match_signal_source_hash_get(sig, src,
- ed->patterns.programs.exact_match);
- EINA_LIST_FOREACH(match, l, pr)
- _edje_glob_callback(pr, &data);
+ match = edje_match_signal_source_hash_get(sig, src,
+ ed->patterns.programs.exact_match);
+ EINA_LIST_FOREACH(match, l, pr)
+ _edje_glob_callback(pr, &data);
#ifdef EDJE_PROGRAM_CACHE
EINA_LIST_FOREACH(data.matches, l, pr)
}
#ifdef EDJE_PROGRAM_CACHE
- if (tmps)
- {
- if (data.matches == NULL)
- {
- if (!ec->prog_cache.no_matches)
- ec->prog_cache.no_matches = eina_hash_string_superfast_new(NULL);
- eina_hash_add(ec->prog_cache.no_matches, tmps, ed);
- }
- else
- {
- if (!ec->prog_cache.matches)
- ec->prog_cache.matches = eina_hash_string_superfast_new(NULL);
- eina_hash_add(ec->prog_cache.matches, tmps, data.matches);
- }
- }
+ if (tmps)
+ {
+ if (data.matches == NULL)
+ {
+ if (!ec->prog_cache.no_matches)
+ ec->prog_cache.no_matches = eina_hash_string_superfast_new(NULL);
+ eina_hash_add(ec->prog_cache.no_matches, tmps, ed);
+ }
+ else
+ {
+ if (!ec->prog_cache.matches)
+ ec->prog_cache.matches = eina_hash_string_superfast_new(NULL);
+ eina_hash_add(ec->prog_cache.matches, tmps, data.matches);
+ }
+ }
#endif
- }
- _edje_emit_cb(ed, sig, src, sdata, prop);
- if (_edje_block_break(ed))
- {
- goto break_prog;
- }
+ }
+ _edje_emit_cb(ed, sig, src, sdata, prop);
+ if (_edje_block_break(ed))
+ {
+ goto break_prog;
+ }
}
- break_prog:
+break_prog:
_edje_thaw(ed);
_edje_unref(ed);
_edje_unblock(ed);
static void
_edje_emit_cb(Edje *ed, const char *sig, const char *src, Edje_Message_Signal_Data *data, Eina_Bool prop)
{
- Eina_List *l;
+ Eina_List *l;
if (ed->delete_me) return;
_edje_ref(ed);
if (ed->callbacks)
{
- Edje_Signal_Callback *escb;
- const Eina_List *match;
- const Eina_List *l2;
+ Edje_Signal_Callback *escb;
+ const Eina_List *match;
+ const Eina_List *l2;
int r = 1;
callback_extra_data = (data) ? data->data : NULL;
- _edje_callbacks_patterns_init(ed);
- if (ed->patterns.callbacks.u.callbacks.globing)
- r = edje_match_callback_exec(ed->patterns.callbacks.signals_patterns,
- ed->patterns.callbacks.sources_patterns,
- sig,
- src,
- ed->patterns.callbacks.u.callbacks.globing,
- ed,
+ _edje_callbacks_patterns_init(ed);
+ if (ed->patterns.callbacks.u.callbacks.globing)
+ r = edje_match_callback_exec(ed->patterns.callbacks.signals_patterns,
+ ed->patterns.callbacks.sources_patterns,
+ sig,
+ src,
+ ed->patterns.callbacks.u.callbacks.globing,
+ ed,
prop);
if (!r)
goto break_prog;
- match = edje_match_signal_source_hash_get(sig, src,
- ed->patterns.callbacks.exact_match);
- EINA_LIST_FOREACH(match, l2, escb)
+ match = edje_match_signal_source_hash_get(sig, src,
+ ed->patterns.callbacks.exact_match);
+ EINA_LIST_FOREACH(match, l2, escb)
{
if ((prop) && (escb->propagate)) continue;
if ((!escb->just_added) && (!escb->delete_me))
}
}
}
- break_prog:
+break_prog:
ed->walking_callbacks--;
if (!ed->walking_callbacks &&
((ed->delete_callbacks) || (ed->just_added_callbacks)))
{
- ed->delete_callbacks = 0;
- ed->just_added_callbacks = 0;
- l = ed->callbacks;
- while (l)
- {
- Edje_Signal_Callback *escb = l->data;
- Eina_List *next_l = l->next;
-
- if (escb->just_added)
- escb->just_added = 0;
- if (escb->delete_me)
- {
- ed->callbacks = eina_list_remove_list(ed->callbacks, l);
- if (escb->signal) eina_stringshare_del(escb->signal);
- if (escb->source) eina_stringshare_del(escb->source);
- free(escb);
- }
- l = next_l;
- }
+ ed->delete_callbacks = 0;
+ ed->just_added_callbacks = 0;
+ l = ed->callbacks;
+ while (l)
+ {
+ Edje_Signal_Callback *escb = l->data;
+ Eina_List *next_l = l->next;
+
+ if (escb->just_added)
+ escb->just_added = 0;
+ if (escb->delete_me)
+ {
+ ed->callbacks = eina_list_remove_list(ed->callbacks, l);
+ if (escb->signal) eina_stringshare_del(escb->signal);
+ if (escb->source) eina_stringshare_del(escb->source);
+ free(escb);
+ }
+ l = next_l;
+ }
_edje_callbacks_patterns_clean(ed);
}
if ((rp->part->type == EDJE_PART_TYPE_TEXT) ||
(rp->part->type == EDJE_PART_TYPE_TEXTBLOCK))
{
- if (!strcmp(name, "text"))
- {
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_STRING;
-
- _edje_recalc_do(rp->edje);
- if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
- param->s = _edje_entry_text_get(rp);
- else if (rp->part->type == EDJE_PART_TYPE_TEXT)
- param->s = rp->text.text;
- else
- param->s = evas_object_textblock_text_markup_get(rp->object);
- return param;
- }
- if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- {
- if (!strcmp(name, "text_unescaped"))
- {
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_STRING;
-
- _edje_recalc_do(rp->edje);
- if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
- {
- const char *tmp = _edje_entry_text_get(rp);
- char *unescaped = _edje_text_unescape(tmp);
- *free_ptr = unescaped;
- param->s = unescaped;
- }
- else if (rp->part->type == EDJE_PART_TYPE_TEXT)
- param->s = rp->text.text;
- else
- {
- const char *tmp;
- char *unescaped;
-
- tmp = evas_object_textblock_text_markup_get(rp->object);
- unescaped = _edje_text_unescape(tmp);
- *free_ptr = unescaped;
- param->s = unescaped;
- }
-
- return param;
- }
-
- if ((rp->entry_data) &&
- (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE) &&
- (!strcmp(name, "select_allow")))
- {
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_BOOL;
- param->i = _edje_entry_select_allow_get(rp);
- return param;
- }
- }
+ if (!strcmp(name, "text"))
+ {
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_STRING;
+
+ _edje_recalc_do(rp->edje);
+ if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
+ param->s = _edje_entry_text_get(rp);
+ else if (rp->part->type == EDJE_PART_TYPE_TEXT)
+ param->s = rp->text.text;
+ else
+ param->s = evas_object_textblock_text_markup_get(rp->object);
+ return param;
+ }
+ if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+ {
+ if (!strcmp(name, "text_unescaped"))
+ {
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_STRING;
+
+ _edje_recalc_do(rp->edje);
+ if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
+ {
+ const char *tmp = _edje_entry_text_get(rp);
+ char *unescaped = _edje_text_unescape(tmp);
+ *free_ptr = unescaped;
+ param->s = unescaped;
+ }
+ else if (rp->part->type == EDJE_PART_TYPE_TEXT)
+ param->s = rp->text.text;
+ else
+ {
+ const char *tmp;
+ char *unescaped;
+
+ tmp = evas_object_textblock_text_markup_get(rp->object);
+ unescaped = _edje_text_unescape(tmp);
+ *free_ptr = unescaped;
+ param->s = unescaped;
+ }
+
+ return param;
+ }
+
+ if ((rp->entry_data) &&
+ (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE) &&
+ (!strcmp(name, "select_allow")))
+ {
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_BOOL;
+ param->i = _edje_entry_select_allow_get(rp);
+ return param;
+ }
+ }
}
if ((rp->drag) && (rp->drag->down.count == 0))
{
- if (!strncmp(name, "drag_", sizeof("drag_") - 1))
- {
- const char *sub_name = name + sizeof("drag_") - 1;
- if (!strcmp(sub_name, "value_x"))
- {
- double d;
-
- _edje_recalc_do(rp->edje);
- d = TO_DOUBLE(rp->drag->val.x);
- if (rp->part->dragable.x < 0) d = 1.0 - d;
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = d;
- return param;
- }
- if (!strcmp(sub_name, "value_y"))
- {
- double d;
-
- _edje_recalc_do(rp->edje);
- d = TO_DOUBLE(rp->drag->val.y);
- if (rp->part->dragable.y < 0) d = 1.0 - d;
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = d;
- return param;
- }
-
- if (!strcmp(sub_name, "size_w"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->size.x);
- return param;
- }
- if (!strcmp(sub_name, "size_h"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->size.y);
- return param;
- }
-
- if (!strcmp(sub_name, "step_x"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->step.x);
- return param;
- }
- if (!strcmp(sub_name, "step_y"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->step.y);
- return param;
- }
-
- if (!strcmp(sub_name, "page_x"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->page.x);
- return param;
- }
- if (!strcmp(sub_name, "page_y"))
- {
- _edje_recalc_do(rp->edje);
- param->name = name;
- param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
- param->d = TO_DOUBLE(rp->drag->page.y);
- return param;
- }
-
- return NULL;
- }
+ if (!strncmp(name, "drag_", sizeof("drag_") - 1))
+ {
+ const char *sub_name = name + sizeof("drag_") - 1;
+ if (!strcmp(sub_name, "value_x"))
+ {
+ double d;
+
+ _edje_recalc_do(rp->edje);
+ d = TO_DOUBLE(rp->drag->val.x);
+ if (rp->part->dragable.x < 0) d = 1.0 - d;
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = d;
+ return param;
+ }
+ if (!strcmp(sub_name, "value_y"))
+ {
+ double d;
+
+ _edje_recalc_do(rp->edje);
+ d = TO_DOUBLE(rp->drag->val.y);
+ if (rp->part->dragable.y < 0) d = 1.0 - d;
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = d;
+ return param;
+ }
+
+ if (!strcmp(sub_name, "size_w"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->size.x);
+ return param;
+ }
+ if (!strcmp(sub_name, "size_h"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->size.y);
+ return param;
+ }
+
+ if (!strcmp(sub_name, "step_x"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->step.x);
+ return param;
+ }
+ if (!strcmp(sub_name, "step_y"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->step.y);
+ return param;
+ }
+
+ if (!strcmp(sub_name, "page_x"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->page.x);
+ return param;
+ }
+ if (!strcmp(sub_name, "page_y"))
+ {
+ _edje_recalc_do(rp->edje);
+ param->name = name;
+ param->type = EDJE_EXTERNAL_PARAM_TYPE_DOUBLE;
+ param->d = TO_DOUBLE(rp->drag->page.y);
+ return param;
+ }
+
+ return NULL;
+ }
}
return NULL;
if ((rp->part->type == EDJE_PART_TYPE_TEXT) ||
(rp->part->type == EDJE_PART_TYPE_TEXTBLOCK))
{
- if (!strcmp(name, "text"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_STRING)
- return EINA_FALSE;
-
- _edje_object_part_text_raw_set
- (rp->edje->obj, rp, rp->part->name, param->s);
- return EINA_TRUE;
- }
- if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- {
- if (!strcmp(name, "text_unescaped"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_STRING)
- return EINA_FALSE;
-
- if (rp->part->type == EDJE_PART_TYPE_TEXT)
- _edje_object_part_text_raw_set
- (rp->edje->obj, rp, rp->part->name, param->s);
- else
- {
- char *escaped = _edje_text_escape(param->s);
- _edje_object_part_text_raw_set
- (rp->edje->obj, rp, rp->part->name, escaped);
- free(escaped);
- }
-
- return EINA_TRUE;
- }
-
- if ((rp->entry_data) &&
- (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE) &&
- (!strcmp(name, "select_allow")))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- return EINA_FALSE;
- _edje_entry_select_allow_set(rp, param->i);
- return EINA_TRUE;
- }
- }
+ if (!strcmp(name, "text"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ return EINA_FALSE;
+
+ _edje_object_part_text_raw_set
+ (rp->edje->obj, rp, rp->part->name, param->s);
+ return EINA_TRUE;
+ }
+ if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+ {
+ if (!strcmp(name, "text_unescaped"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_STRING)
+ return EINA_FALSE;
+
+ if (rp->part->type == EDJE_PART_TYPE_TEXT)
+ _edje_object_part_text_raw_set
+ (rp->edje->obj, rp, rp->part->name, param->s);
+ else
+ {
+ char *escaped = _edje_text_escape(param->s);
+ _edje_object_part_text_raw_set
+ (rp->edje->obj, rp, rp->part->name, escaped);
+ free(escaped);
+ }
+
+ return EINA_TRUE;
+ }
+
+ if ((rp->entry_data) &&
+ (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE) &&
+ (!strcmp(name, "select_allow")))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ return EINA_FALSE;
+ _edje_entry_select_allow_set(rp, param->i);
+ return EINA_TRUE;
+ }
+ }
}
if ((rp->drag) && (rp->drag->down.count == 0))
{
- if (!strncmp(name, "drag_", sizeof("drag_") - 1))
- {
- const char *sub_name = name + sizeof("drag_") - 1;
- if (!strcmp(sub_name, "value_x"))
- {
- double d;
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- d = param->d;
- if (rp->part->dragable.confine_id != -1)
- d = CLAMP(d, 0.0, 1.0);
- if (rp->part->dragable.x < 0) d = 1.0 - d;
- if (rp->drag->val.x == FROM_DOUBLE(d)) return EINA_TRUE;
- rp->drag->val.x = FROM_DOUBLE(d);
+ if (!strncmp(name, "drag_", sizeof("drag_") - 1))
+ {
+ const char *sub_name = name + sizeof("drag_") - 1;
+ if (!strcmp(sub_name, "value_x"))
+ {
+ double d;
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ d = param->d;
+ if (rp->part->dragable.confine_id != -1)
+ d = CLAMP(d, 0.0, 1.0);
+ if (rp->part->dragable.x < 0) d = 1.0 - d;
+ if (rp->drag->val.x == FROM_DOUBLE(d)) return EINA_TRUE;
+ rp->drag->val.x = FROM_DOUBLE(d);
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_dragable_pos_set
- (rp->edje, rp, rp->drag->val.x, rp->drag->val.y);
- _edje_emit(rp->edje, "drag,set", rp->part->name);
- return EINA_TRUE;
- }
- if (!strcmp(sub_name, "value_y"))
- {
- double d;
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- d = param->d;
- if (rp->part->dragable.confine_id != -1)
- d = CLAMP(d, 0.0, 1.0);
- if (rp->part->dragable.y < 0) d = 1.0 - d;
- if (rp->drag->val.y == FROM_DOUBLE(d)) return EINA_TRUE;
- rp->drag->val.y = FROM_DOUBLE(d);
+ _edje_dragable_pos_set
+ (rp->edje, rp, rp->drag->val.x, rp->drag->val.y);
+ _edje_emit(rp->edje, "drag,set", rp->part->name);
+ return EINA_TRUE;
+ }
+ if (!strcmp(sub_name, "value_y"))
+ {
+ double d;
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ d = param->d;
+ if (rp->part->dragable.confine_id != -1)
+ d = CLAMP(d, 0.0, 1.0);
+ if (rp->part->dragable.y < 0) d = 1.0 - d;
+ if (rp->drag->val.y == FROM_DOUBLE(d)) return EINA_TRUE;
+ rp->drag->val.y = FROM_DOUBLE(d);
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_dragable_pos_set
- (rp->edje, rp, rp->drag->val.x, rp->drag->val.y);
- _edje_emit(rp->edje, "drag,set", rp->part->name);
- return EINA_TRUE;
- }
-
- if (!strcmp(sub_name, "size_w"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->size.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ _edje_dragable_pos_set
+ (rp->edje, rp, rp->drag->val.x, rp->drag->val.y);
+ _edje_emit(rp->edje, "drag,set", rp->part->name);
+ return EINA_TRUE;
+ }
+
+ if (!strcmp(sub_name, "size_w"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->size.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
rp->edje->recalc_call = 1;
- rp->edje->dirty = 1;
+ rp->edje->dirty = 1;
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_recalc(rp->edje);
- return EINA_TRUE;
- }
- if (!strcmp(sub_name, "size_h"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->size.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ _edje_recalc(rp->edje);
+ return EINA_TRUE;
+ }
+ if (!strcmp(sub_name, "size_h"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->size.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
rp->edje->recalc_call = 1;
- rp->edje->dirty = 1;
+ rp->edje->dirty = 1;
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_recalc(rp->edje);
- return EINA_TRUE;
- }
-
- if (!strcmp(sub_name, "step_x"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->step.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ _edje_recalc(rp->edje);
+ return EINA_TRUE;
+ }
+
+ if (!strcmp(sub_name, "step_x"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->step.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- return EINA_TRUE;
- }
- if (!strcmp(sub_name, "step_y"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->step.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ return EINA_TRUE;
+ }
+ if (!strcmp(sub_name, "step_y"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->step.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- return EINA_TRUE;
- }
-
- if (!strcmp(sub_name, "page_x"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->page.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ return EINA_TRUE;
+ }
+
+ if (!strcmp(sub_name, "page_x"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->page.x = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- return EINA_TRUE;
- }
- if (!strcmp(sub_name, "page_y"))
- {
- if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
- return EINA_FALSE;
- rp->drag->page.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
+ return EINA_TRUE;
+ }
+ if (!strcmp(sub_name, "page_y"))
+ {
+ if (param->type != EDJE_EXTERNAL_PARAM_TYPE_DOUBLE)
+ return EINA_FALSE;
+ rp->drag->page.y = FROM_DOUBLE(CLAMP(param->d, 0.0, 1.0));
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- return EINA_TRUE;
- }
+ return EINA_TRUE;
+ }
- return EINA_FALSE;
- }
+ return EINA_FALSE;
+ }
}
return EINA_FALSE;
if ((rp->part->type == EDJE_PART_TYPE_TEXT) ||
(rp->part->type == EDJE_PART_TYPE_TEXTBLOCK))
{
- if (!strcmp(name, "text"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_STRING("text");
- return π
- }
- if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- {
- if (!strcmp(name, "text_unescaped"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_STRING("text_unescaped");
- return π
- }
- if (!strcmp(name, "select_allow"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_BOOL("text_unescaped");
- return π
- }
- }
+ if (!strcmp(name, "text"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_STRING("text");
+ return π
+ }
+ if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+ {
+ if (!strcmp(name, "text_unescaped"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_STRING("text_unescaped");
+ return π
+ }
+ if (!strcmp(name, "select_allow"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_BOOL("text_unescaped");
+ return π
+ }
+ }
}
if ((rp->drag) && (rp->drag->down.count == 0))
{
- if (!strncmp(name, "drag_", sizeof("drag_") - 1))
- {
- name += sizeof("drag_") - 1;
- if (!strcmp(name, "value_x"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_value_x");
- return π
- }
- if (!strcmp(name, "value_y"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_value_y");
- return π
- }
- if (!strcmp(name, "size_w"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_size_w");
- return π
- }
- if (!strcmp(name, "size_h"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_size_h");
- return π
- }
- if (!strcmp(name, "step_x"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_step_x");
- return π
- }
- if (!strcmp(name, "step_y"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_step_y");
- return π
- }
- if (!strcmp(name, "page_x"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_page_x");
- return π
- }
- if (!strcmp(name, "page_y"))
- {
- static const Edje_External_Param_Info pi =
- EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_page_y");
- return π
- }
-
- return NULL;
- }
+ if (!strncmp(name, "drag_", sizeof("drag_") - 1))
+ {
+ name += sizeof("drag_") - 1;
+ if (!strcmp(name, "value_x"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_value_x");
+ return π
+ }
+ if (!strcmp(name, "value_y"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_value_y");
+ return π
+ }
+ if (!strcmp(name, "size_w"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_size_w");
+ return π
+ }
+ if (!strcmp(name, "size_h"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_size_h");
+ return π
+ }
+ if (!strcmp(name, "step_x"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_step_x");
+ return π
+ }
+ if (!strcmp(name, "step_y"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_step_y");
+ return π
+ }
+ if (!strcmp(name, "page_x"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_page_x");
+ return π
+ }
+ if (!strcmp(name, "page_y"))
+ {
+ static const Edje_External_Param_Info pi =
+ EDJE_EXTERNAL_PARAM_INFO_DOUBLE("drag_page_y");
+ return π
+ }
+
+ return NULL;
+ }
}
return NULL;
{
case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
case EDJE_EXTERNAL_PARAM_TYPE_INT:
- {
- int i;
- switch (param->type)
- {
- case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- i = (int)param->d;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
- i = (param->s) ? atoi(param->s) : 0;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- case EDJE_EXTERNAL_PARAM_TYPE_INT:
- i = param->i;
- break;
- default:
- return NULL;
- }
- if (dst_info->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
- i = !!i;
- param->type = dst_info->type;
- param->i = i;
- return param;
- }
+ {
+ int i;
+ switch (param->type)
+ {
+ case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
+ i = (int)param->d;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_STRING:
+ case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
+ i = (param->s) ? atoi(param->s) : 0;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
+ case EDJE_EXTERNAL_PARAM_TYPE_INT:
+ i = param->i;
+ break;
+
+ default:
+ return NULL;
+ }
+ if (dst_info->type == EDJE_EXTERNAL_PARAM_TYPE_BOOL)
+ i = !!i;
+ param->type = dst_info->type;
+ param->i = i;
+ return param;
+ }
case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- {
- double d;
- switch (param->type)
- {
- case EDJE_EXTERNAL_PARAM_TYPE_INT:
- d = (double)param->i;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
- d = (param->s) ? atof(param->s) : 0.0;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- d = (double)param->i;
- break;
- default:
- return NULL;
- }
- param->type = dst_info->type;
- param->d = d;
- return param;
- }
+ {
+ double d;
+ switch (param->type)
+ {
+ case EDJE_EXTERNAL_PARAM_TYPE_INT:
+ d = (double)param->i;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_STRING:
+ case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
+ d = (param->s) ? atof(param->s) : 0.0;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
+ d = (double)param->i;
+ break;
+
+ default:
+ return NULL;
+ }
+ param->type = dst_info->type;
+ param->d = d;
+ return param;
+ }
case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- {
- static char s[64];
- switch (param->type)
- {
- case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- case EDJE_EXTERNAL_PARAM_TYPE_INT:
- if (!snprintf(s, sizeof(s), "%i", param->i)) return NULL;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- if (!snprintf(s, sizeof(s), "%f", param->d)) return NULL;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
- param->type = dst_info->type;
- return param;
- default:
- return NULL;
- }
- param->type = dst_info->type;
- param->s = s;
- return param;
- }
+ {
+ static char s[64];
+ switch (param->type)
+ {
+ case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
+ case EDJE_EXTERNAL_PARAM_TYPE_INT:
+ if (!snprintf(s, sizeof(s), "%i", param->i)) return NULL;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
+ if (!snprintf(s, sizeof(s), "%f", param->d)) return NULL;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
+ param->type = dst_info->type;
+ return param;
+
+ default:
+ return NULL;
+ }
+ param->type = dst_info->type;
+ param->s = s;
+ return param;
+ }
case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
- {
- static char s[64];
- const char *val;
- switch (param->type)
- {
- case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- case EDJE_EXTERNAL_PARAM_TYPE_INT:
- if (!snprintf(s, sizeof(s), "%i", param->i)) return NULL;
- val = s;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- if (!snprintf(s, sizeof(s), "%f", param->d)) return NULL;
- val = s;
- break;
- case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- val = param->s;
- break;
- default:
- return NULL;
- }
-
- param->type = dst_info->type;
- if (param->s != val) param->s = val;
- return param;
- }
+ {
+ static char s[64];
+ const char *val;
+ switch (param->type)
+ {
+ case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
+ case EDJE_EXTERNAL_PARAM_TYPE_INT:
+ if (!snprintf(s, sizeof(s), "%i", param->i)) return NULL;
+ val = s;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
+ if (!snprintf(s, sizeof(s), "%f", param->d)) return NULL;
+ val = s;
+ break;
+
+ case EDJE_EXTERNAL_PARAM_TYPE_STRING:
+ val = param->s;
+ break;
+
+ default:
+ return NULL;
+ }
+
+ param->type = dst_info->type;
+ if (param->s != val) param->s = val;
+ return param;
+ }
default: return NULL;
}
switch (info->type)
{
case EDJE_EXTERNAL_PARAM_TYPE_BOOL:
- return ((param->i == 0) || (param->i == 1));
+ return (param->i == 0) || (param->i == 1);
case EDJE_EXTERNAL_PARAM_TYPE_INT:
- if ((info->info.i.min != EDJE_EXTERNAL_INT_UNSET) &&
- (info->info.i.min > param->i))
- return EINA_FALSE;
+ if ((info->info.i.min != EDJE_EXTERNAL_INT_UNSET) &&
+ (info->info.i.min > param->i))
+ return EINA_FALSE;
- if ((info->info.i.max != EDJE_EXTERNAL_INT_UNSET) &&
- (info->info.i.max < param->i))
- return EINA_FALSE;
+ if ((info->info.i.max != EDJE_EXTERNAL_INT_UNSET) &&
+ (info->info.i.max < param->i))
+ return EINA_FALSE;
- return EINA_TRUE;
+ return EINA_TRUE;
case EDJE_EXTERNAL_PARAM_TYPE_DOUBLE:
- if ((info->info.d.min != EDJE_EXTERNAL_DOUBLE_UNSET) &&
- (info->info.d.min > param->d))
- return EINA_FALSE;
+ if ((info->info.d.min != EDJE_EXTERNAL_DOUBLE_UNSET) &&
+ (info->info.d.min > param->d))
+ return EINA_FALSE;
- if ((info->info.d.max != EDJE_EXTERNAL_DOUBLE_UNSET) &&
- (info->info.d.max < param->d))
- return EINA_FALSE;
+ if ((info->info.d.max != EDJE_EXTERNAL_DOUBLE_UNSET) &&
+ (info->info.d.max < param->d))
+ return EINA_FALSE;
- return EINA_TRUE;
+ return EINA_TRUE;
case EDJE_EXTERNAL_PARAM_TYPE_STRING:
- if (!param->s) return EINA_FALSE;
- if (info->info.s.accept_fmt)
- INF("string 'accept_fmt' validation not implemented.");
- if (info->info.s.deny_fmt)
- INF("string 'deny_fmt' validation not implemented.");
- return EINA_TRUE;
+ if (!param->s) return EINA_FALSE;
+ if (info->info.s.accept_fmt)
+ INF("string 'accept_fmt' validation not implemented.");
+ if (info->info.s.deny_fmt)
+ INF("string 'deny_fmt' validation not implemented.");
+ return EINA_TRUE;
case EDJE_EXTERNAL_PARAM_TYPE_CHOICE:
- {
- const char **itr = info->info.c.choices;
- if (!itr) return EINA_FALSE;
- for (; *itr; itr++)
- if (!strcmp(*itr, param->s))
- return EINA_TRUE;
- return EINA_FALSE;
- }
+ {
+ const char **itr = info->info.c.choices;
+ if (!itr) return EINA_FALSE;
+ for (; *itr; itr++)
+ if (!strcmp(*itr, param->s))
+ return EINA_TRUE;
+ return EINA_FALSE;
+ }
default: return EINA_FALSE;
}
if (dst_part->part->type == EDJE_PART_TYPE_EXTERNAL)
dst_info = _edje_external_param_info_get
- (dst_part->swallowed_object, dst_param);
+ (dst_part->swallowed_object, dst_param);
else
dst_info = _edje_native_param_info_get(dst_part, dst_param);
if (!dst_info)
{
- ERR("cannot copy, invalid destination parameter '%s' of part '%s'",
- dst_param, dst_part->part->name);
- return;
+ ERR("cannot copy, invalid destination parameter '%s' of part '%s'",
+ dst_param, dst_part->part->name);
+ return;
}
if (src_part->part->type == EDJE_PART_TYPE_EXTERNAL)
{
- if (!_edje_param_external_get
- (src_part, src_param, &val))
- {
- ERR("cannot get parameter '%s' of part '%s'",
- src_param, src_part->part->name);
- return;
- }
+ if (!_edje_param_external_get
+ (src_part, src_param, &val))
+ {
+ ERR("cannot get parameter '%s' of part '%s'",
+ src_param, src_part->part->name);
+ return;
+ }
}
else
{
- if (!_edje_param_native_get(src_part, src_param, &val, &free_ptr))
- {
- ERR("cannot get parameter '%s' of part '%s'",
- src_param, src_part->part->name);
- return;
- }
+ if (!_edje_param_native_get(src_part, src_param, &val, &free_ptr))
+ {
+ ERR("cannot get parameter '%s' of part '%s'",
+ src_param, src_part->part->name);
+ return;
+ }
}
if (!_edje_param_convert(&val, dst_info))
{
- ERR("cannot convert parameter type %s to requested type %s",
- edje_external_param_type_str(val.type),
- edje_external_param_type_str(dst_info->type));
- goto end;
+ ERR("cannot convert parameter type %s to requested type %s",
+ edje_external_param_type_str(val.type),
+ edje_external_param_type_str(dst_info->type));
+ goto end;
}
if (!_edje_param_validate(&val, dst_info))
{
- ERR("incorrect parameter value failed validation for type %s",
- edje_external_param_type_str(dst_info->type));
- goto end;
+ ERR("incorrect parameter value failed validation for type %s",
+ edje_external_param_type_str(dst_info->type));
+ goto end;
}
if (dst_part->part->type == EDJE_PART_TYPE_EXTERNAL)
{
- val.name = dst_param;
- if (!_edje_external_param_set(NULL, dst_part, &val))
- {
- ERR("failed to set parameter '%s' (%s) of part '%s'",
- dst_param, edje_external_param_type_str(dst_info->type),
- dst_part->part->name);
- goto end;
- }
+ val.name = dst_param;
+ if (!_edje_external_param_set(NULL, dst_part, &val))
+ {
+ ERR("failed to set parameter '%s' (%s) of part '%s'",
+ dst_param, edje_external_param_type_str(dst_info->type),
+ dst_part->part->name);
+ goto end;
+ }
}
else
{
- if (!_edje_param_native_set(dst_part, dst_param, &val))
- {
- ERR("failed to set parameter '%s' (%s) of part '%s'",
- dst_param, edje_external_param_type_str(dst_info->type),
- dst_part->part->name);
- goto end;
- }
+ if (!_edje_param_native_set(dst_part, dst_param, &val))
+ {
+ ERR("failed to set parameter '%s' (%s) of part '%s'",
+ dst_param, edje_external_param_type_str(dst_info->type),
+ dst_part->part->name);
+ goto end;
+ }
}
- end:
+end:
free(free_ptr);
}
if (!info)
{
- ERR("cannot copy, invalid destination parameter '%s' of part '%s'",
- param, part->part->name);
- return;
+ ERR("cannot copy, invalid destination parameter '%s' of part '%s'",
+ param, part->part->name);
+ return;
}
val.name = "(temp)";
if (!_edje_param_convert(&val, info))
{
- ERR("cannot convert parameter type STRING to requested type %s",
- edje_external_param_type_str(info->type));
- return;
+ ERR("cannot convert parameter type STRING to requested type %s",
+ edje_external_param_type_str(info->type));
+ return;
}
if (!_edje_param_validate(&val, info))
{
- ERR("incorrect parameter value failed validation for type %s",
- edje_external_param_type_str(info->type));
- return;
+ ERR("incorrect parameter value failed validation for type %s",
+ edje_external_param_type_str(info->type));
+ return;
}
if (part->part->type == EDJE_PART_TYPE_EXTERNAL)
{
- val.name = param;
- if (!_edje_external_param_set(NULL, part, &val))
- {
- ERR("failed to set parameter '%s' (%s) of part '%s'",
- param, edje_external_param_type_str(info->type),
- part->part->name);
- return;
- }
+ val.name = param;
+ if (!_edje_external_param_set(NULL, part, &val))
+ {
+ ERR("failed to set parameter '%s' (%s) of part '%s'",
+ param, edje_external_param_type_str(info->type),
+ part->part->name);
+ return;
+ }
}
else
{
- if (!_edje_param_native_set(part, param, &val))
- {
- ERR("failed to set parameter '%s' (%s) of part '%s'",
- param, edje_external_param_type_str(info->type),
- part->part->name);
- return;
- }
+ if (!_edje_param_native_set(part, param, &val))
+ {
+ ERR("failed to set parameter '%s' (%s) of part '%s'",
+ param, edje_external_param_type_str(info->type),
+ part->part->name);
+ return;
+ }
}
}
+
{
EINA_RBTREE;
Evas_Object_Box_Layout func;
- void *(*layout_data_get)(void *);
- void (*layout_data_free)(void *);
- void *data;
- void (*free_data)(void *);
- char name[];
+ void *(*layout_data_get)(void *);
+ void (*layout_data_free)(void *);
+ void *data;
+ void (*free_data)(void *);
+ char name[];
};
static Eina_Hash *_edje_color_class_hash = NULL;
static Eina_Bool _edje_color_class_list_foreach(const Eina_Hash *hash, const void *key, void *data, void *fdata);
static Eina_Bool _edje_text_class_list_foreach(const Eina_Hash *hash, const void *key, void *data, void *fdata);
-static void _edje_object_image_preload_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
-static void _edje_object_signal_preload_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
-static void _edje_user_def_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *child __UNUSED__, void *einfo __UNUSED__);
-static void _edje_table_child_remove(Edje_Real_Part *rp, Evas_Object *child);
-static void _edje_box_child_remove(Edje_Real_Part *rp, Evas_Object *child);
+static void _edje_object_image_preload_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
+static void _edje_object_signal_preload_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
+static void _edje_user_def_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *child __UNUSED__, void *einfo __UNUSED__);
+static void _edje_table_child_remove(Edje_Real_Part *rp, Evas_Object *child);
+static void _edje_box_child_remove(Edje_Real_Part *rp, Evas_Object *child);
-Edje_Real_Part *_edje_real_part_recursive_get_helper(const Edje *ed, char **path);
+Edje_Real_Part *_edje_real_part_recursive_get_helper(const Edje *ed, char **path);
static Edje_User_Defined *
_edje_user_definition_new(Edje_User_Defined_Type type, const char *part, Edje *ed)
switch (eud->type)
{
case EDJE_USER_SWALLOW:
- child = eud->u.swallow.child;
- rp = _edje_real_part_recursive_get(eud->ed, eud->part);
- if (rp)
- {
- _edje_real_part_swallow_clear(rp);
- rp->swallowed_object = NULL;
- rp->swallow_params.min.w = 0;
- rp->swallow_params.min.h = 0;
- rp->swallow_params.max.w = 0;
- rp->swallow_params.max.h = 0;
- rp->edje->dirty = 1;
- rp->edje->recalc_call = 1;
+ child = eud->u.swallow.child;
+ rp = _edje_real_part_recursive_get(eud->ed, eud->part);
+ if (rp)
+ {
+ _edje_real_part_swallow_clear(rp);
+ rp->swallowed_object = NULL;
+ rp->swallow_params.min.w = 0;
+ rp->swallow_params.min.h = 0;
+ rp->swallow_params.max.w = 0;
+ rp->swallow_params.max.h = 0;
+ rp->edje->dirty = 1;
+ rp->edje->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_recalc_do(rp->edje);
- }
- break;
+ _edje_recalc_do(rp->edje);
+ }
+ break;
+
case EDJE_USER_BOX_PACK:
- child = eud->u.box.child;
- rp = _edje_real_part_recursive_get(eud->ed, eud->part);
- _edje_box_child_remove(rp, child);
- break;
+ child = eud->u.box.child;
+ rp = _edje_real_part_recursive_get(eud->ed, eud->part);
+ _edje_box_child_remove(rp, child);
+ break;
+
case EDJE_USER_TABLE_PACK:
- child = eud->u.table.child;
- rp = _edje_real_part_recursive_get(eud->ed, eud->part);
- _edje_table_child_remove(rp, child);
- break;
+ child = eud->u.table.child;
+ rp = _edje_real_part_recursive_get(eud->ed, eud->part);
+ _edje_table_child_remove(rp, child);
+ break;
+
case EDJE_USER_STRING:
case EDJE_USER_DRAG_STEP:
case EDJE_USER_DRAG_PAGE:
case EDJE_USER_DRAG_VALUE:
case EDJE_USER_DRAG_SIZE:
- break;
+ break;
}
_edje_user_definition_remove(eud, child);
}
lookup = malloc(sizeof (Edje_List_Refcount));
- if (!lookup) return ;
+ if (!lookup) return;
EINA_REFCOUNT_INIT(lookup);
/* Get members list */
if (!members) return;
lookup = eina_hash_find(*ehash, class);
- if (!lookup) return ;
+ if (!lookup) return;
EINA_REFCOUNT_UNREF(lookup)
{
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- {
- Edje *ed2;
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ {
+ Edje *ed2;
- ed2 = _edje_fetch(rp->swallowed_object);
- if (ed2) _edje_thaw_edje(ed2);
- }
+ ed2 = _edje_fetch(rp->swallowed_object);
+ if (ed2) _edje_thaw_edje(ed2);
+ }
}
if ((ed->recalc) && (ed->freeze <= 0)) _edje_recalc_do(ed);
}
+
#endif
EAPI void
{
Edje *ed;
- _edje_freeze_calc_count = 0;
- EINA_LIST_FREE(_edje_freeze_calc_list, ed)
- {
- _edje_thaw_edje(ed);
+ _edje_freeze_calc_count = 0;
+ EINA_LIST_FREE(_edje_freeze_calc_list, ed)
+ {
+ _edje_thaw_edje(ed);
ed->freeze_calc = 0;
- }
+ }
}
#else
- Evas_Object *data;
+ Evas_Object *data;
// FIXME: could just have a global freeze instead of per object
// comment as above.. why?
EAPI double
edje_scale_get(void)
{
- return TO_DOUBLE(_edje_scale);
+ return TO_DOUBLE(_edje_scale);
}
EAPI void
if (ed->scale == scale) return EINA_TRUE;
ed->scale = FROM_DOUBLE(scale);
EINA_LIST_FOREACH(ed->groups, l, ged)
- ged->scale = ed->scale;
+ ged->scale = ed->scale;
EINA_LIST_FOREACH(ed->subobjs, l, o)
- edje_object_calc_force(o);
- for(i = 0; i < ed->table_parts_size; ++i)
+ edje_object_calc_force(o);
+ for (i = 0; i < ed->table_parts_size; ++i)
{
Edje_Real_Part *ep;
ep = ed->table_parts[i];
|| (ep->part->type == EDJE_PART_TYPE_TABLE))
{
EINA_LIST_FOREACH(ep->items, l, o)
- edje_object_scale_set(o, scale);
+ edje_object_scale_set(o, scale);
}
}
edje_object_calc_force(obj);
ed->is_rtl = rtl;
- for (i = 0 ; i < ed->table_parts_size ; i++)
+ for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *ep;
+ Edje_Real_Part *ep;
const char *s;
double v;
- ep = ed->table_parts[i];
- s = ep->param1.description->state.name,
- v = ep->param1.description->state.value;
- _edje_part_description_apply(ed, ep, s, v , NULL, 0.0);
+ ep = ed->table_parts[i];
+ s = ep->param1.description->state.name,
+ v = ep->param1.description->state.value;
+ _edje_part_description_apply(ed, ep, s, v, NULL, 0.0);
ep->chosen_description = ep->param1.description;
}
_edje_recalc_do(ed);
if (!ed) return 0;
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_freeze(rp->swallowed_object);
+ Edje_Real_Part *rp;
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_freeze(rp->swallowed_object);
}
return _edje_freeze(ed);
}
if (!ed) return 0;
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_thaw(rp->swallowed_object);
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_thaw(rp->swallowed_object);
}
return _edje_thaw(ed);
}
if (!cc)
{
cc = calloc(1, sizeof(Edje_Color_Class));
- if (!cc) return EINA_FALSE;
- cc->name = eina_stringshare_add(color_class);
- if (!cc->name)
- {
- free(cc);
- return EINA_FALSE;
- }
- if (!_edje_color_class_hash)
+ if (!cc) return EINA_FALSE;
+ cc->name = eina_stringshare_add(color_class);
+ if (!cc->name)
+ {
+ free(cc);
+ return EINA_FALSE;
+ }
+ if (!_edje_color_class_hash)
_edje_color_class_hash = eina_hash_string_superfast_new(NULL);
eina_hash_add(_edje_color_class_hash, color_class, cc);
}
- if (r < 0) r = 0;
- else if (r > 255) r = 255;
- if (g < 0) g = 0;
- else if (g > 255) g = 255;
- if (b < 0) b = 0;
- else if (b > 255) b = 255;
- if (a < 0) a = 0;
- else if (a > 255) a = 255;
+ if (r < 0) r = 0;
+ else if (r > 255)
+ r = 255;
+ if (g < 0) g = 0;
+ else if (g > 255)
+ g = 255;
+ if (b < 0) b = 0;
+ else if (b > 255)
+ b = 255;
+ if (a < 0) a = 0;
+ else if (a > 255)
+ a = 255;
if ((cc->r == r) && (cc->g == g) &&
(cc->b == b) && (cc->a == a) &&
(cc->r2 == r2) && (cc->g2 == g2) &&
members = eina_hash_find(_edje_color_class_member_hash, color_class);
while (members)
{
- Edje *ed;
+ Edje *ed;
- ed = eina_list_data_get(members);
- ed->dirty = 1;
+ ed = eina_list_data_get(members);
+ ed->dirty = 1;
ed->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = 1;
#endif
- _edje_recalc(ed);
- _edje_emit(ed, "color_class,set", color_class);
- members = eina_list_next(members);
+ _edje_recalc(ed);
+ _edje_emit(ed, "color_class,set", color_class);
+ members = eina_list_next(members);
}
return EINA_TRUE;
}
if (cc)
{
-#define X(C) if (C) *C = cc->C
+#define X(C) if (C) \
+ *C = cc->C
#define S(_r, _g, _b, _a) X(_r); X(_g); X(_b); X(_a)
- S(r, g, b, a);
- S(r2, g2, b2, a2);
- S(r3, g3, b3, a3);
+ S(r, g, b, a);
+ S(r2, g2, b2, a2);
+ S(r3, g3, b3, a3);
#undef S
#undef X
- return EINA_TRUE;
+ return EINA_TRUE;
}
else
{
-#define X(C) if (C) *C = 0
+#define X(C) if (C) \
+ *C = 0
#define S(_r, _g, _b, _a) X(_r); X(_g); X(_b); X(_a)
- S(r, g, b, a);
- S(r2, g2, b2, a2);
- S(r3, g3, b3, a3);
+ S(r, g, b, a);
+ S(r2, g2, b2, a2);
+ S(r3, g3, b3, a3);
#undef S
#undef X
- return EINA_FALSE;
+ return EINA_FALSE;
}
}
members = eina_hash_find(_edje_color_class_member_hash, color_class);
while (members)
{
- Edje *ed;
+ Edje *ed;
- ed = eina_list_data_get(members);
- ed->dirty = 1;
+ ed = eina_list_data_get(members);
+ ed->dirty = 1;
ed->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = 1;
#endif
- _edje_recalc(ed);
- _edje_emit(ed, "color_class,del", color_class);
- members = eina_list_next(members);
+ _edje_recalc(ed);
+ _edje_emit(ed, "color_class,del", color_class);
+ members = eina_list_next(members);
}
}
{
Edje_List_Foreach_Data fdata;
- if (!_edje_color_class_member_hash) return NULL;
-
+ if (!_edje_color_class_hash) return NULL;
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
- eina_hash_foreach(_edje_color_class_member_hash,
+ eina_hash_foreach(_edje_color_class_hash,
_edje_color_class_list_foreach, &fdata);
return fdata.list;
ed = _edje_fetch(obj);
if ((!ed) || (!color_class)) return EINA_FALSE;
- if (r < 0) r = 0;
- else if (r > 255) r = 255;
- if (g < 0) g = 0;
- else if (g > 255) g = 255;
- if (b < 0) b = 0;
- else if (b > 255) b = 255;
- if (a < 0) a = 0;
- else if (a > 255) a = 255;
+ if (r < 0) r = 0;
+ else if (r > 255)
+ r = 255;
+ if (g < 0) g = 0;
+ else if (g > 255)
+ g = 255;
+ if (b < 0) b = 0;
+ else if (b > 255)
+ b = 255;
+ if (a < 0) a = 0;
+ else if (a > 255)
+ a = 255;
cc = eina_hash_find(ed->color_classes, color_class);
if (cc)
{
- if ((cc->r == r) && (cc->g == g) &&
- (cc->b == b) && (cc->a == a) &&
- (cc->r2 == r2) && (cc->g2 == g2) &&
- (cc->b2 == b2) && (cc->a2 == a2) &&
- (cc->r3 == r3) && (cc->g3 == g3) &&
- (cc->b3 == b3) && (cc->a3 == a3))
- return EINA_TRUE;
- cc->r = r;
- cc->g = g;
- cc->b = b;
- cc->a = a;
- cc->r2 = r2;
- cc->g2 = g2;
- cc->b2 = b2;
- cc->a2 = a2;
- cc->r3 = r3;
- cc->g3 = g3;
- cc->b3 = b3;
- cc->a3 = a3;
- ed->dirty = 1;
- ed->recalc_call = 1;
+ if ((cc->r == r) && (cc->g == g) &&
+ (cc->b == b) && (cc->a == a) &&
+ (cc->r2 == r2) && (cc->g2 == g2) &&
+ (cc->b2 == b2) && (cc->a2 == a2) &&
+ (cc->r3 == r3) && (cc->g3 == g3) &&
+ (cc->b3 == b3) && (cc->a3 == a3))
+ return EINA_TRUE;
+ cc->r = r;
+ cc->g = g;
+ cc->b = b;
+ cc->a = a;
+ cc->r2 = r2;
+ cc->g2 = g2;
+ cc->b2 = b2;
+ cc->a2 = a2;
+ cc->r3 = r3;
+ cc->g3 = g3;
+ cc->b3 = b3;
+ cc->a3 = a3;
+ ed->dirty = 1;
+ ed->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = 1;
#endif
- _edje_recalc(ed);
- return EINA_TRUE;
+ _edje_recalc(ed);
+ return EINA_TRUE;
}
color_class = eina_stringshare_add(color_class);
cc = malloc(sizeof(Edje_Color_Class));
if (!cc)
{
- eina_stringshare_del(color_class);
- return EINA_FALSE;
+ eina_stringshare_del(color_class);
+ return EINA_FALSE;
}
cc->name = color_class;
cc->r = r;
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_color_class_set(rp->swallowed_object, color_class,
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_color_class_set(rp->swallowed_object, color_class,
r, g, b, a, r2, g2, b2, a2, r3, g3, b3,
a3);
}
if (cc)
{
-#define X(C) if (C) *C = cc->C
+#define X(C) if (C) \
+ *C = cc->C
#define S(_r, _g, _b, _a) X(_r); X(_g); X(_b); X(_a)
- S(r, g, b, a);
- S(r2, g2, b2, a2);
- S(r3, g3, b3, a3);
+ S(r, g, b, a);
+ S(r2, g2, b2, a2);
+ S(r3, g3, b3, a3);
#undef S
#undef X
- return EINA_TRUE;
+ return EINA_TRUE;
}
else
{
-#define X(C) if (C) *C = 0
+#define X(C) if (C) \
+ *C = 0
#define S(_r, _g, _b, _a) X(_r); X(_g); X(_b); X(_a)
- S(r, g, b, a);
- S(r2, g2, b2, a2);
- S(r3, g3, b3, a3);
+ S(r, g, b, a);
+ S(r2, g2, b2, a2);
+ S(r3, g3, b3, a3);
#undef S
#undef X
- return EINA_FALSE;
+ return EINA_FALSE;
}
}
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_color_class_del(rp->swallowed_object, color_class);
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_color_class_del(rp->swallowed_object, color_class);
}
ed->dirty = 1;
if (!tc)
{
tc = calloc(1, sizeof(Edje_Text_Class));
- if (!tc) return EINA_FALSE;
- tc->name = eina_stringshare_add(text_class);
- if (!tc->name)
- {
- free(tc);
- return EINA_FALSE;
- }
- if (!_edje_text_class_hash) _edje_text_class_hash = eina_hash_string_superfast_new(NULL);
+ if (!tc) return EINA_FALSE;
+ tc->name = eina_stringshare_add(text_class);
+ if (!tc->name)
+ {
+ free(tc);
+ return EINA_FALSE;
+ }
+ if (!_edje_text_class_hash) _edje_text_class_hash = eina_hash_string_superfast_new(NULL);
eina_hash_add(_edje_text_class_hash, text_class, tc);
- tc->font = eina_stringshare_add(font);
- tc->size = size;
+ tc->font = eina_stringshare_add(font);
+ tc->size = size;
}
else
{
members = eina_hash_find(_edje_text_class_member_hash, text_class);
while (members)
{
- Edje *ed;
+ Edje *ed;
- ed = eina_list_data_get(members);
- ed->dirty = 1;
+ ed = eina_list_data_get(members);
+ ed->dirty = 1;
ed->recalc_call = 1;
- _edje_textblock_style_all_update(ed);
+ _edje_textblock_style_all_update(ed);
#ifdef EDJE_CALC_CACHE
- ed->text_part_change = 1;
+ ed->text_part_change = 1;
#endif
- _edje_recalc(ed);
- members = eina_list_next(members);
+ _edje_recalc(ed);
+ members = eina_list_next(members);
}
return EINA_TRUE;
}
members = eina_hash_find(_edje_text_class_member_hash, text_class);
while (members)
{
- Edje *ed;
+ Edje *ed;
- ed = eina_list_data_get(members);
- ed->dirty = 1;
- _edje_textblock_style_all_update(ed);
+ ed = eina_list_data_get(members);
+ ed->dirty = 1;
+ _edje_textblock_style_all_update(ed);
#ifdef EDJE_CALC_CACHE
- ed->text_part_change = 1;
+ ed->text_part_change = 1;
#endif
- _edje_recalc(ed);
- members = eina_list_next(members);
+ _edje_recalc(ed);
+ members = eina_list_next(members);
}
}
{
Edje_List_Foreach_Data fdata;
+ if (!_edje_text_class_hash) return NULL;
memset(&fdata, 0, sizeof(Edje_List_Foreach_Data));
- eina_hash_foreach(_edje_text_class_member_hash,
+ eina_hash_foreach(_edje_text_class_hash,
_edje_text_class_list_foreach, &fdata);
return fdata.list;
}
/* for each text_class in the edje */
EINA_LIST_FOREACH(ed->text_classes, l, tc)
{
- if ((tc->name) && (!strcmp(tc->name, text_class)))
- {
- /* Match and the same, return */
+ if ((tc->name) && (!strcmp(tc->name, text_class)))
+ {
+ /* Match and the same, return */
if ((tc->size == size) &&
((tc->font == font) ||
- (tc->font && font && !strcmp(tc->font, font))))
- return EINA_TRUE;
+ (tc->font && font && !strcmp(tc->font, font))))
+ return EINA_TRUE;
- /* Update new text class properties */
+ /* Update new text class properties */
eina_stringshare_replace(&tc->font, font);
- tc->size = size;
+ tc->size = size;
break;
- }
+ }
}
if (!tc)
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
- edje_object_text_class_set(rp->swallowed_object, text_class,
+ rp = ed->table_parts[i];
+ if (rp->part->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object)
+ edje_object_text_class_set(rp->swallowed_object, text_class,
font, size);
}
}
EAPI Eina_Bool
-edje_object_part_geometry_get(const Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h )
+edje_object_part_geometry_get(const Evas_Object *obj, const char *part, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h)
{
Edje *ed;
Edje_Real_Part *rp;
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (x) *x = 0;
- if (y) *y = 0;
- if (w) *w = 0;
- if (h) *h = 0;
- return EINA_FALSE;
+ if (x) *x = 0;
+ if (y) *y = 0;
+ if (w) *w = 0;
+ if (h) *h = 0;
+ return EINA_FALSE;
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp)
{
- if (x) *x = 0;
- if (y) *y = 0;
- if (w) *w = 0;
- if (h) *h = 0;
- return EINA_FALSE;
+ if (x) *x = 0;
+ if (y) *y = 0;
+ if (w) *w = 0;
+ if (h) *h = 0;
+ return EINA_FALSE;
}
if (x) *x = rp->x;
if (y) *y = rp->y;
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if ((rp->part->type == EDJE_PART_TYPE_GROUP) && (rp->swallowed_object))
- edje_object_text_change_cb_set(rp->swallowed_object, func, data);
+ rp = ed->table_parts[i];
+ if ((rp->part->type == EDJE_PART_TYPE_GROUP) && (rp->swallowed_object))
+ edje_object_text_change_cb_set(rp->swallowed_object, func, data);
}
}
_edje_object_part_text_raw_set(Evas_Object *obj, Edje_Real_Part *rp, const char *part, const char *text)
{
if ((!rp->text.text) && (!text))
- return EINA_TRUE; /* nothing to do, no error */
+ return EINA_TRUE; /* nothing to do, no error */
if ((rp->text.text) && (text) &&
(!strcmp(rp->text.text, text)))
- return EINA_TRUE; /* nothing to do, no error */
+ return EINA_TRUE; /* nothing to do, no error */
if (rp->text.text)
{
- eina_stringshare_del(rp->text.text);
- rp->text.text = NULL;
+ eina_stringshare_del(rp->text.text);
+ rp->text.text = NULL;
}
if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
_edje_entry_text_markup_set(rp, text);
else
- if (text) rp->text.text = eina_stringshare_add(text);
+ if (text)
+ rp->text.text = eina_stringshare_add(text);
rp->edje->dirty = 1;
rp->edje->recalc_call = 1;
rp->edje->recalc_hints = 1;
EAPI void
edje_object_part_text_style_user_push(Evas_Object *obj, const char *part,
- const char *style)
+ const char *style)
{
Edje *ed;
Edje_Real_Part *rp;
ts = evas_object_textblock_style_user_peek(rp->object);
if (ts)
- return evas_textblock_style_get(ts);
+ return evas_textblock_style_get(ts);
else
- return NULL;
+ return NULL;
}
static void
_edje_user_define_string(Edje *ed, const char *part, const char *raw_text)
{
/* NOTE: This one is tricky, text is referenced in rp->text.text for the life of the
- rp. So on edje_object_file_set, we should first ref it, before destroying the old
- layout. */
+ rp. So on edje_object_file_set, we should first ref it, before destroying the old
+ layout. */
Edje_User_Defined *eud;
Eina_List *l;
if (!raw_text)
{
_edje_user_definition_free(eud);
- return ;
+ return;
}
eud->u.string.text = raw_text;
- return ;
+ return;
}
eud = _edje_user_definition_new(EDJE_USER_STRING, part, ed);
- if (!eud) return ;
+ if (!eud) return;
eud->u.string.text = raw_text;
}
return _edje_entry_text_get(rp);
else
{
- if (rp->part->type == EDJE_PART_TYPE_TEXT) return rp->text.text;
- if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- return evas_object_textblock_text_markup_get(rp->object);
+ if (rp->part->type == EDJE_PART_TYPE_TEXT) return rp->text.text;
+ if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+ return evas_object_textblock_text_markup_get(rp->object);
}
return NULL;
}
Eina_Strbuf *sbuf;
char *esc_start = NULL, *esc_end = NULL;
char *s, *p;
-
+
sbuf = eina_strbuf_new();
p = (char *)text;
s = p;
- for (;;)
+ for (;; )
{
if ((*p == 0) || (esc_end) || (esc_start))
{
if (esc_end)
{
const char *escape;
-
+
escape = evas_textblock_escape_string_range_get
- (esc_start, esc_end + 1);
+ (esc_start, esc_end + 1);
if (escape) eina_strbuf_append(sbuf, escape);
esc_start = esc_end = NULL;
}
else if (*p == 0)
{
- if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
+ if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
eina_strbuf_append_length(sbuf, s, p - s);
s = NULL;
}
if (*p == 0)
break;
}
-
+
if (*p == '&')
{
- if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
+ if (!s) s = esc_start; /* This would happen when there is & that isn't escaped */
esc_start = p;
esc_end = NULL;
eina_strbuf_append_length(sbuf, s, p - s);
p++;
}
ret = _edje_object_part_text_raw_set
- (obj, rp, part, eina_strbuf_string_get(sbuf));
+ (obj, rp, part, eina_strbuf_string_get(sbuf));
_edje_user_define_string(ed, part, rp->text.text);
eina_strbuf_free(sbuf);
return ret;
return ret;
}
-
char *
_edje_text_escape(const char *text)
{
text_end = text + text_len;
while (text < text_end)
{
- int advance;
- const char *escaped = evas_textblock_string_escape_get(text, &advance);
- if (!escaped)
- {
- eina_strbuf_append_char(txt, text[0]);
- advance = 1;
- }
- else
- eina_strbuf_append(txt, escaped);
+ int advance;
+ const char *escaped = evas_textblock_string_escape_get(text, &advance);
+ if (!escaped)
+ {
+ eina_strbuf_append_char(txt, text[0]);
+ advance = 1;
+ }
+ else
+ eina_strbuf_append(txt, escaped);
- text += advance;
+ text += advance;
}
ret = eina_strbuf_string_steal(txt);
escape_start = NULL;
for (; text < text_end; text++)
{
- if (*text == '&')
- {
- size_t len;
- const char *str;
-
- if (last)
- {
- len = text - last;
- str = last;
- }
- else
- {
- len = text - escape_start;
- str = escape_start;
- }
-
- if (len > 0)
- eina_strbuf_append_n(txt, str, len);
-
- escape_start = text;
- last = NULL;
- }
- else if ((*text == ';') && (escape_start))
- {
- size_t len;
- const char *str = evas_textblock_escape_string_range_get(escape_start, text);
-
- if (str)
- len = strlen(str);
- else
- {
- str = escape_start;
- len = text + 1 - escape_start;
- }
-
- eina_strbuf_append_n(txt, str, len);
-
- escape_start = NULL;
- last = text + 1;
- }
+ if (*text == '&')
+ {
+ size_t len;
+ const char *str;
+
+ if (last)
+ {
+ len = text - last;
+ str = last;
+ }
+ else
+ {
+ len = text - escape_start;
+ str = escape_start;
+ }
+
+ if (len > 0)
+ eina_strbuf_append_n(txt, str, len);
+
+ escape_start = text;
+ last = NULL;
+ }
+ else if ((*text == ';') && (escape_start))
+ {
+ size_t len;
+ const char *str = evas_textblock_escape_string_range_get(escape_start, text);
+
+ if (str)
+ len = strlen(str);
+ else
+ {
+ str = escape_start;
+ len = text + 1 - escape_start;
+ }
+
+ eina_strbuf_append_n(txt, str, len);
+
+ escape_start = NULL;
+ last = text + 1;
+ }
}
if (!last && escape_start)
if (last && (text > last))
{
- size_t len = text - last;
- eina_strbuf_append_n(txt, last, len);
+ size_t len = text - last;
+ eina_strbuf_append_n(txt, last, len);
}
ret = eina_strbuf_string_steal(txt);
ret = _edje_object_part_text_raw_set(obj, rp, part, text_to_escape);
else if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
{
- char *text = _edje_text_escape(text_to_escape);
+ char *text = _edje_text_escape(text_to_escape);
- ret = _edje_object_part_text_raw_set(obj, rp, part, text);
- free(text);
+ ret = _edje_object_part_text_raw_set(obj, rp, part, text);
+ free(text);
}
_edje_user_define_string(ed, part, rp->text.text);
return ret;
if (!rp) return NULL;
if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
{
- const char *t = _edje_entry_text_get(rp);
- return _edje_text_unescape(t);
+ const char *t = _edje_entry_text_get(rp);
+ return _edje_text_unescape(t);
}
else
{
- if (rp->part->type == EDJE_PART_TYPE_TEXT) return strdup(rp->text.text);
- if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
- {
- const char *t = evas_object_textblock_text_markup_get(rp->object);
- return _edje_text_unescape(t);
- }
+ if (rp->part->type == EDJE_PART_TYPE_TEXT) return strdup(rp->text.text);
+ if (rp->part->type == EDJE_PART_TYPE_TEXTBLOCK)
+ {
+ const char *t = evas_object_textblock_text_markup_get(rp->object);
+ return _edje_text_unescape(t);
+ }
}
return NULL;
}
if (!rp) return;
if (rp->part->entry_mode > EDJE_ENTRY_EDIT_MODE_NONE)
{
- _edje_entry_cursor_geometry_get(rp, x, y, w, h);
- if (x) *x -= rp->edje->x;
- if (y) *y -= rp->edje->y;
+ _edje_entry_cursor_geometry_get(rp, x, y, w, h);
+ if (x) *x -= rp->edje->x;
+ if (y) *y -= rp->edje->y;
}
}
EAPI Eina_Bool
edje_object_part_text_cursor_coord_set(Evas_Object *obj, const char *part,
- Edje_Cursor cur, Evas_Coord x, Evas_Coord y)
+ Edje_Cursor cur, Evas_Coord x, Evas_Coord y)
{
- Edje *ed;
+ Edje *ed;
Edje_Real_Part *rp;
ed = _edje_fetch(obj);
{
void *data = cb->data;
ed->text_insert_filter_callbacks =
- eina_list_remove_list(ed->text_insert_filter_callbacks, l);
+ eina_list_remove_list(ed->text_insert_filter_callbacks, l);
eina_stringshare_del(cb->part);
free(cb);
return data;
{
void *tmp = cb->data;
ed->text_insert_filter_callbacks =
- eina_list_remove_list(ed->text_insert_filter_callbacks, l);
+ eina_list_remove_list(ed->text_insert_filter_callbacks, l);
eina_stringshare_del(cb->part);
free(cb);
return tmp;
{
void *data = cb->data;
ed->markup_filter_callbacks =
- eina_list_remove_list(ed->markup_filter_callbacks, l);
+ eina_list_remove_list(ed->markup_filter_callbacks, l);
eina_stringshare_del(cb->part);
free(cb);
return data;
{
void *tmp = cb->data;
ed->markup_filter_callbacks =
- eina_list_remove_list(ed->markup_filter_callbacks, l);
+ eina_list_remove_list(ed->markup_filter_callbacks, l);
eina_stringshare_del(cb->part);
free(cb);
return tmp;
}
if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
{
- ERR("cannot swallow part %s: not swallow type!", rp->part->name);
- return EINA_FALSE;
+ ERR("cannot swallow part %s: not swallow type!", rp->part->name);
+ return EINA_FALSE;
}
_edje_real_part_swallow(rp, obj_swallow, EINA_TRUE);
evas_object_event_callback_add(obj_swallow, EVAS_CALLBACK_DEL, _edje_user_def_del_cb, eud);
}
else ed->user_defined = eina_list_append(ed->user_defined, eud);
-
+
if (eud)
{
eud->u.swallow.child = obj_swallow;
rp = evas_object_data_get(obj, "\377 edje.swallowing_part");
if (rp)
{
- rp->swallow_params.min.w = minw;
- rp->swallow_params.min.h = minh;
+ rp->swallow_params.min.w = minw;
+ rp->swallow_params.min.h = minh;
- _recalc_extern_parent(obj);
+ _recalc_extern_parent(obj);
}
}
rp = evas_object_data_get(obj, "\377 edje.swallowing_part");
if (rp)
{
- rp->swallow_params.max.w = maxw;
- rp->swallow_params.max.h = maxh;
+ rp->swallow_params.max.w = maxw;
+ rp->swallow_params.max.h = maxh;
- _recalc_extern_parent(obj);
+ _recalc_extern_parent(obj);
}
}
switch (aspect)
{
case EDJE_ASPECT_CONTROL_NONE: asp = EVAS_ASPECT_CONTROL_NONE; break;
+
case EDJE_ASPECT_CONTROL_NEITHER: asp = EVAS_ASPECT_CONTROL_NEITHER; break;
+
case EDJE_ASPECT_CONTROL_HORIZONTAL: asp = EVAS_ASPECT_CONTROL_HORIZONTAL; break;
+
case EDJE_ASPECT_CONTROL_VERTICAL: asp = EVAS_ASPECT_CONTROL_VERTICAL; break;
+
case EDJE_ASPECT_CONTROL_BOTH: asp = EVAS_ASPECT_CONTROL_BOTH; break;
+
default: break;
}
if (aw < 1) aw = 1;
rp = evas_object_data_get(obj, "\377 edje.swallowing_part");
if (rp)
{
- rp->swallow_params.aspect.mode = aspect;
- rp->swallow_params.aspect.w = aw;
- rp->swallow_params.aspect.h = ah;
+ rp->swallow_params.aspect.mode = aspect;
+ rp->swallow_params.aspect.w = aw;
+ rp->swallow_params.aspect.h = ah;
_recalc_extern_parent(obj);
}
}
-struct edje_box_layout_builtin {
- const char *name;
+struct edje_box_layout_builtin
+{
+ const char *name;
Evas_Object_Box_Layout cb;
};
_edje_box_layout_builtin_find(const char *name)
{
const struct edje_box_layout_builtin _edje_box_layout_builtin[] = {
- {"horizontal", evas_object_box_layout_horizontal},
- {"horizontal_flow", evas_object_box_layout_flow_horizontal},
- {"horizontal_homogeneous", evas_object_box_layout_homogeneous_horizontal},
- {"horizontal_max", evas_object_box_layout_homogeneous_max_size_horizontal},
- {"stack", evas_object_box_layout_stack},
- {"vertical", evas_object_box_layout_vertical},
- {"vertical_flow", evas_object_box_layout_flow_vertical},
- {"vertical_homogeneous", evas_object_box_layout_homogeneous_vertical},
- {"vertical_max", evas_object_box_layout_homogeneous_max_size_vertical},
- {NULL, NULL}
+ {"horizontal", evas_object_box_layout_horizontal},
+ {"horizontal_flow", evas_object_box_layout_flow_horizontal},
+ {"horizontal_homogeneous", evas_object_box_layout_homogeneous_horizontal},
+ {"horizontal_max", evas_object_box_layout_homogeneous_max_size_horizontal},
+ {"stack", evas_object_box_layout_stack},
+ {"vertical", evas_object_box_layout_vertical},
+ {"vertical_flow", evas_object_box_layout_flow_vertical},
+ {"vertical_homogeneous", evas_object_box_layout_homogeneous_vertical},
+ {"vertical_max", evas_object_box_layout_homogeneous_max_size_vertical},
+ {NULL, NULL}
};
const struct edje_box_layout_builtin *base;
switch (name[0])
{
case 'h':
- base = _edje_box_layout_builtin + 0;
- break;
+ base = _edje_box_layout_builtin + 0;
+ break;
+
case 's':
- base = _edje_box_layout_builtin + 4;
- break;
+ base = _edje_box_layout_builtin + 4;
+ break;
+
case 'v':
- base = _edje_box_layout_builtin + 5;
- break;
+ base = _edje_box_layout_builtin + 5;
+ break;
+
default:
- return NULL;
+ return NULL;
}
for (; (base->name) && (base->name[0] == name[0]); base++)
_edje_box_layout_external_find(const char *name)
{
return (Edje_Box_Layout *)eina_rbtree_inline_lookup
- (_edje_box_layout_registry, name, 0, _edje_box_layout_external_find_cmp,
- NULL);
+ (_edje_box_layout_registry, name, 0, _edje_box_layout_external_find_cmp,
+ NULL);
}
Eina_Bool
-_edje_box_layout_find(const char *name, Evas_Object_Box_Layout *cb, void **data, void (**free_data)(void *data))
+_edje_box_layout_find(const char *name, Evas_Object_Box_Layout *cb, void **data, void(**free_data) (void *data))
{
const Edje_Box_Layout *l;
*cb = _edje_box_layout_builtin_find(name);
if (*cb)
{
- *free_data = NULL;
- *data = NULL;
- return EINA_TRUE;
+ *free_data = NULL;
+ *data = NULL;
+ return EINA_TRUE;
}
l = _edje_box_layout_external_find(name);
if (_edje_box_layout_builtin_find(name))
{
- ERR("Cannot register layout '%s': would override builtin!",
- name);
+ ERR("Cannot register layout '%s': would override builtin!",
+ name);
- if (data && free_data) free_data(data);
- return;
+ if (data && free_data) free_data(data);
+ return;
}
l = _edje_box_layout_external_find(name);
if (!l)
{
- if (!func)
- {
- if (data && free_data) free_data(data);
- return;
- }
+ if (!func)
+ {
+ if (data && free_data) free_data(data);
+ return;
+ }
- l = _edje_box_layout_external_new
- (name, func, layout_data_get, layout_data_free, free_data, data);
- if (!l)
- return;
+ l = _edje_box_layout_external_new
+ (name, func, layout_data_get, layout_data_free, free_data, data);
+ if (!l)
+ return;
- _edje_box_layout_registry = eina_rbtree_inline_insert
- (_edje_box_layout_registry, (Eina_Rbtree *)l,
- _edje_box_layout_external_node_cmp, NULL);
+ _edje_box_layout_registry = eina_rbtree_inline_insert
+ (_edje_box_layout_registry, (Eina_Rbtree *)l,
+ _edje_box_layout_external_node_cmp, NULL);
}
else
{
- if (func)
- {
- if (l->data && l->free_data) l->free_data(l->data);
+ if (func)
+ {
+ if (l->data && l->free_data) l->free_data(l->data);
- l->func = func;
- l->layout_data_get = layout_data_get;
- l->layout_data_free = layout_data_free;
- l->free_data = free_data;
- l->data = data;
- }
- else
- {
- if (data && free_data) free_data(data);
+ l->func = func;
+ l->layout_data_get = layout_data_get;
+ l->layout_data_free = layout_data_free;
+ l->free_data = free_data;
+ l->data = data;
+ }
+ else
+ {
+ if (data && free_data) free_data(data);
- _edje_box_layout_registry = eina_rbtree_inline_remove
- (_edje_box_layout_registry, (Eina_Rbtree *)l,
- _edje_box_layout_external_node_cmp, NULL);
- _edje_box_layout_external_free((Eina_Rbtree *)l, NULL);
- }
+ _edje_box_layout_registry = eina_rbtree_inline_remove
+ (_edje_box_layout_registry, (Eina_Rbtree *)l,
+ _edje_box_layout_external_node_cmp, NULL);
+ _edje_box_layout_external_free((Eina_Rbtree *)l, NULL);
+ }
}
}
return;
if (rp->part->type != EDJE_PART_TYPE_SWALLOW)
{
- ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
- return;
+ ERR("cannot unswallow part %s: not swallow type!", rp->part->name);
+ return;
}
if (rp->swallowed_object == obj_swallow)
if (eud->type == EDJE_USER_SWALLOW && eud->u.swallow.child == obj_swallow)
{
_edje_user_definition_free(eud);
- return ;
+ return;
}
}
}
_edje_real_part_swallow_clear(rp);
- rp->swallowed_object = NULL;
- rp->swallow_params.min.w = 0;
- rp->swallow_params.min.h = 0;
- rp->swallow_params.max.w = 0;
- rp->swallow_params.max.h = 0;
- rp->edje->dirty = 1;
+ rp->swallowed_object = NULL;
+ rp->swallow_params.min.w = 0;
+ rp->swallow_params.min.h = 0;
+ rp->swallow_params.max.w = 0;
+ rp->swallow_params.max.h = 0;
+ rp->edje->dirty = 1;
rp->edje->recalc_call = 1;
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
- _edje_recalc_do(rp->edje);
- return;
+ _edje_recalc_do(rp->edje);
+ return;
}
}
ed = _edje_fetch(obj);
if ((!ed) || (!ed->collection))
{
- if (minw) *minw = 0;
- if (minh) *minh = 0;
- return;
+ if (minw) *minw = 0;
+ if (minh) *minh = 0;
+ return;
}
if (minw) *minw = ed->collection->prop.min.w;
if (minh) *minh = ed->collection->prop.min.h;
ed = _edje_fetch(obj);
if ((!ed) || (!ed->collection))
{
- if (maxw) *maxw = 0;
- if (maxh) *maxh = 0;
- return;
+ if (maxw) *maxw = 0;
+ if (maxh) *maxh = 0;
+ return;
}
/* Need to recalc before providing the object. */
if (ed->collection->prop.max.w == 0)
{
- /* XXX TODO: convert maxw to 0, fix things that break. */
- if (maxw) *maxw = EDJE_INF_MAX_W;
+ /* XXX TODO: convert maxw to 0, fix things that break. */
+ if (maxw) *maxw = EDJE_INF_MAX_W;
}
else
{
- if (maxw) *maxw = ed->collection->prop.max.w;
+ if (maxw) *maxw = ed->collection->prop.max.w;
}
if (ed->collection->prop.max.h == 0)
{
- /* XXX TODO: convert maxh to 0, fix things that break. */
- if (maxh) *maxh = EDJE_INF_MAX_H;
+ /* XXX TODO: convert maxh to 0, fix things that break. */
+ if (maxh) *maxh = EDJE_INF_MAX_H;
}
else
{
- if (maxh) *maxh = ed->collection->prop.max.h;
+ if (maxh) *maxh = ed->collection->prop.max.h;
}
}
ed = _edje_fetch(obj);
if (!ed)
{
- if (x) *x = 0;
- if (y) *y = 0;
- if (w) *w = 0;
- if (h) *h = 0;
- return EINA_FALSE;
+ if (x) *x = 0;
+ if (y) *y = 0;
+ if (w) *w = 0;
+ if (h) *h = 0;
+ return EINA_FALSE;
}
ed->calc_only = 1;
rp = ed->table_parts[i];
- rpx1 = rp->x;
- rpy1 = rp->y;
- rpx2 = rpx1 + rp->w;
- rpy2 = rpy1 + rp->h;
+ rpx1 = rp->x;
+ rpy1 = rp->y;
+ rpx2 = rpx1 + rp->w;
+ rpy2 = rpy1 + rp->h;
- if (xx1 > rpx1) xx1 = rpx1;
- if (yy1 > rpy1) yy1 = rpy1;
- if (xx2 < rpx2) xx2 = rpx2;
- if (yy2 < rpy2) yy2 = rpy2;
+ if (xx1 > rpx1) xx1 = rpx1;
+ if (yy1 > rpy1) yy1 = rpy1;
+ if (xx2 < rpx2) xx2 = rpx2;
+ if (yy2 < rpy2) yy2 = rpy2;
}
ed->calc_only = 0;
ed = _edje_fetch(obj);
if ((!ed) || (!ed->collection))
{
- if (minw) *minw = restrictedw;
- if (minh) *minh = restrictedh;
- return;
+ if (minw) *minw = restrictedw;
+ if (minh) *minh = restrictedh;
+ return;
}
reset_maxwh = 1;
ed->calc_only = 1;
pw = ed->w;
ph = ed->h;
- again:
+again:
ed->w = restrictedw;
ed->h = restrictedh;
do
{
- unsigned int i;
+ unsigned int i;
okw = okh = 0;
- ed->dirty = 1;
+ ed->dirty = 1;
#ifdef EDJE_CALC_CACHE
- ed->all_part_change = 1;
+ ed->all_part_change = 1;
#endif
- _edje_recalc_do(ed);
- if (reset_maxwh)
- {
- maxw = 0;
- maxh = 0;
- }
- pep = NULL;
- has_non_fixed_tb = EINA_FALSE;
- for (i = 0; i < ed->table_parts_size; i++)
- {
- Edje_Real_Part *ep;
- int w, h;
- int didw;
-
- ep = ed->table_parts[i];
- w = ep->w - ep->req.w;
- h = ep->h - ep->req.h;
- didw = 0;
- if (ep->chosen_description)
- {
- if (!ep->chosen_description->fixed.w)
- {
- if ((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK))
- {
+ _edje_recalc_do(ed);
+ if (reset_maxwh)
+ {
+ maxw = 0;
+ maxh = 0;
+ }
+ pep = NULL;
+ has_non_fixed_tb = EINA_FALSE;
+ for (i = 0; i < ed->table_parts_size; i++)
+ {
+ Edje_Real_Part *ep;
+ int w, h;
+ int didw;
+
+ ep = ed->table_parts[i];
+ w = ep->w - ep->req.w;
+ h = ep->h - ep->req.h;
+ didw = 0;
+ if (ep->chosen_description)
+ {
+ if (!ep->chosen_description->fixed.w)
+ {
+ if ((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK))
+ {
Evas_Coord tb_mw;
evas_object_textblock_size_formatted_get(ep->object,
- &tb_mw, NULL);
+ &tb_mw, NULL);
tb_mw -= ep->req.w;
if (tb_mw > w)
{
w = tb_mw;
}
has_non_fixed_tb = EINA_TRUE;
- }
- if (w > maxw)
- {
- maxw = w;
- okw = 1;
- pep = ep;
- didw = 1;
- }
- }
- if (!ep->chosen_description->fixed.h)
- {
- if (!((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK) &&
- (!((Edje_Part_Description_Text *)ep->chosen_description)->text.min_x) &&
- (didw)))
- {
- if (h > maxh)
- {
- maxh = h;
- okh = 1;
- pep = ep;
- }
- }
+ }
+ if (w > maxw)
+ {
+ maxw = w;
+ okw = 1;
+ pep = ep;
+ didw = 1;
+ }
+ }
+ if (!ep->chosen_description->fixed.h)
+ {
+ if (!((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK) &&
+ (!((Edje_Part_Description_Text *)ep->chosen_description)->text.min_x) &&
+ (didw)))
+ {
+ if (h > maxh)
+ {
+ maxh = h;
+ okh = 1;
+ pep = ep;
+ }
+ }
if (ep->part->type == EDJE_PART_TYPE_TEXTBLOCK)
{
has_non_fixed_tb = EINA_TRUE;
}
- }
- }
- }
- if (okw)
- {
- ed->w += maxw;
- if (ed->w < restrictedw) ed->w = restrictedw;
+ }
+ }
+ }
+ if (okw)
+ {
+ ed->w += maxw;
+ if (ed->w < restrictedw) ed->w = restrictedw;
}
if (okh)
{
- ed->h += maxh;
- if (ed->h < restrictedh) ed->h = restrictedh;
- }
- if ((ed->w > 4000) || (ed->h > 4000))
- {
+ ed->h += maxh;
+ if (ed->h < restrictedh) ed->h = restrictedh;
+ }
+ if ((ed->w > 4000) || (ed->h > 4000))
+ {
/* Only print it if we have a non-fixed textblock.
* We should possibly avoid all of this if in this case, but in
* the meanwhile, just doing this. */
if (!has_non_fixed_tb)
{
if (pep)
- ERR("file %s, group %s has a non-fixed part '%s'. Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.",
- ed->path, ed->group, pep->part->name);
+ ERR("file %s, group %s has a non-fixed part '%s'. Adding 'fixed: 1 1;' to source EDC may help. Continuing discarding faulty part.",
+ ed->path, ed->group, pep->part->name);
else
- ERR("file %s, group %s overflowed 4000x4000 with minimum size of %dx%d. Continuing discarding faulty parts.",
- ed->path, ed->group, ed->w, ed->h);
+ ERR("file %s, group %s overflowed 4000x4000 with minimum size of %dx%d. Continuing discarding faulty parts.",
+ ed->path, ed->group, ed->w, ed->h);
}
- if (reset_maxwh)
- {
- reset_maxwh = 0;
- goto again;
- }
- }
+ if (reset_maxwh)
+ {
+ reset_maxwh = 0;
+ goto again;
+ }
+ }
}
while (okw || okh);
ed->min.w = ed->w;
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (val_ret) *val_ret = 0;
- return "";
+ if (val_ret) *val_ret = 0;
+ return "";
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp)
{
- if (val_ret) *val_ret = 0;
- INF("part not found");
- return "";
+ if (val_ret) *val_ret = 0;
+ INF("part not found");
+ return "";
}
if (rp->chosen_description)
{
- if (val_ret) *val_ret = rp->chosen_description->state.value;
- if (rp->chosen_description->state.name)
- return rp->chosen_description->state.name;
- return "default";
+ if (val_ret) *val_ret = rp->chosen_description->state.value;
+ if (rp->chosen_description->state.name)
+ return rp->chosen_description->state.name;
+ return "default";
}
else
{
- if (rp->param1.description)
- {
- if (val_ret) *val_ret = rp->param1.description->state.value;
- if (rp->param1.description->state.name)
- return rp->param1.description->state.name;
- return "default";
- }
+ if (rp->param1.description)
+ {
+ if (val_ret) *val_ret = rp->param1.description->state.value;
+ if (rp->param1.description->state.name)
+ return rp->param1.description->state.name;
+ return "default";
+ }
}
if (val_ret) *val_ret = 0;
return "";
rp = _edje_real_part_recursive_get(ed, part);
if (!rp) return EDJE_DRAG_DIR_NONE;
if ((rp->part->dragable.x) && (rp->part->dragable.y)) return EDJE_DRAG_DIR_XY;
- else if (rp->part->dragable.x) return EDJE_DRAG_DIR_X;
- else if (rp->part->dragable.y) return EDJE_DRAG_DIR_Y;
+ else if (rp->part->dragable.x)
+ return EDJE_DRAG_DIR_X;
+ else if (rp->part->dragable.y)
+ return EDJE_DRAG_DIR_Y;
return EDJE_DRAG_DIR_NONE;
}
{
eud->u.drag_position.x = dx;
eud->u.drag_position.y = dy;
- }
+ }
}
if (rp->part->dragable.confine_id != -1)
{
- dx = CLAMP(dx, 0.0, 1.0);
- dy = CLAMP(dy, 0.0, 1.0);
+ dx = CLAMP(dx, 0.0, 1.0);
+ dy = CLAMP(dy, 0.0, 1.0);
}
if (rp->part->dragable.x < 0) dx = 1.0 - dx;
if (rp->part->dragable.y < 0) dy = 1.0 - dy;
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp || !rp->drag)
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
ddx = TO_DOUBLE(rp->drag->val.x);
ddy = TO_DOUBLE(rp->drag->val.y);
{
eud->u.drag_size.w = dw;
eud->u.drag_size.h = dh;
- }
+ }
}
if (dw < 0.0) dw = 0.0;
- else if (dw > 1.0) dw = 1.0;
+ else if (dw > 1.0)
+ dw = 1.0;
if (dh < 0.0) dh = 0.0;
- else if (dh > 1.0) dh = 1.0;
+ else if (dh > 1.0)
+ dh = 1.0;
if ((rp->drag->size.x == FROM_DOUBLE(dw)) && (rp->drag->size.y == FROM_DOUBLE(dh))) return EINA_TRUE;
rp->drag->size.x = FROM_DOUBLE(dw);
rp->drag->size.y = FROM_DOUBLE(dh);
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (dw) *dw = 0;
- if (dh) *dh = 0;
- return EINA_FALSE;
+ if (dw) *dw = 0;
+ if (dh) *dh = 0;
+ return EINA_FALSE;
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp || !rp->drag)
{
- if (dw) *dw = 0;
- if (dh) *dh = 0;
- return EINA_FALSE;
+ if (dw) *dw = 0;
+ if (dh) *dh = 0;
+ return EINA_FALSE;
}
if (dw) *dw = TO_DOUBLE(rp->drag->size.x);
if (dh) *dh = TO_DOUBLE(rp->drag->size.y);
{
eud->u.drag_position.x = dx;
eud->u.drag_position.y = dy;
- }
+ }
}
if (dx < 0.0) dx = 0.0;
- else if (dx > 1.0) dx = 1.0;
+ else if (dx > 1.0)
+ dx = 1.0;
if (dy < 0.0) dy = 0.0;
- else if (dy > 1.0) dy = 1.0;
+ else if (dy > 1.0)
+ dy = 1.0;
rp->drag->step.x = FROM_DOUBLE(dx);
rp->drag->step.y = FROM_DOUBLE(dy);
#ifdef EDJE_CALC_CACHE
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp || !rp->drag)
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
if (dx) *dx = TO_DOUBLE(rp->drag->step.x);
if (dy) *dy = TO_DOUBLE(rp->drag->step.y);
{
eud->u.drag_position.x = dx;
eud->u.drag_position.y = dy;
- }
+ }
}
if (dx < 0.0) dx = 0.0;
- else if (dx > 1.0) dx = 1.0;
+ else if (dx > 1.0)
+ dx = 1.0;
if (dy < 0.0) dy = 0.0;
- else if (dy > 1.0) dy = 1.0;
+ else if (dy > 1.0)
+ dy = 1.0;
rp->drag->page.x = FROM_DOUBLE(dx);
rp->drag->page.y = FROM_DOUBLE(dy);
#ifdef EDJE_CALC_CACHE
ed = _edje_fetch(obj);
if ((!ed) || (!part))
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
/* Need to recalc before providing the object. */
rp = _edje_real_part_recursive_get(ed, part);
if (!rp || !rp->drag)
{
- if (dx) *dx = 0;
- if (dy) *dy = 0;
- return EINA_FALSE;
+ if (dx) *dx = 0;
+ if (dy) *dy = 0;
+ return EINA_FALSE;
}
if (dx) *dx = TO_DOUBLE(rp->drag->page.x);
if (dy) *dy = TO_DOUBLE(rp->drag->page.y);
{
eud->u.drag_position.x = dx;
eud->u.drag_position.y = dy;
- }
+ }
}
px = rp->drag->val.x;
py = rp->drag->val.y;
rp->drag->val.x = ADD(px, MUL(FROM_DOUBLE(dx),
- MUL(rp->drag->step.x, rp->part->dragable.x)));
+ MUL(rp->drag->step.x, rp->part->dragable.x)));
rp->drag->val.y = ADD(py, MUL(FROM_DOUBLE(dy),
- MUL(rp->drag->step.y, rp->part->dragable.y)));
- rp->drag->val.x = CLAMP (rp->drag->val.x, ZERO, FROM_DOUBLE(1.0));
- rp->drag->val.y = CLAMP (rp->drag->val.y, ZERO, FROM_DOUBLE(1.0));
+ MUL(rp->drag->step.y, rp->part->dragable.y)));
+ rp->drag->val.x = CLAMP(rp->drag->val.x, ZERO, FROM_DOUBLE(1.0));
+ rp->drag->val.y = CLAMP(rp->drag->val.y, ZERO, FROM_DOUBLE(1.0));
if ((px == rp->drag->val.x) && (py == rp->drag->val.y)) return EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
{
eud->u.drag_position.x = dx;
eud->u.drag_position.y = dy;
- }
+ }
}
px = rp->drag->val.x;
py = rp->drag->val.y;
rp->drag->val.x = ADD(px, MUL(FROM_DOUBLE(dx), MUL(rp->drag->page.x, rp->part->dragable.x)));
rp->drag->val.y = ADD(py, MUL(FROM_DOUBLE(dy), MUL(rp->drag->page.y, rp->part->dragable.y)));
- rp->drag->val.x = CLAMP (rp->drag->val.x, ZERO, FROM_DOUBLE(1.0));
- rp->drag->val.y = CLAMP (rp->drag->val.y, ZERO, FROM_DOUBLE(1.0));
+ rp->drag->val.x = CLAMP(rp->drag->val.x, ZERO, FROM_DOUBLE(1.0));
+ rp->drag->val.y = CLAMP(rp->drag->val.y, ZERO, FROM_DOUBLE(1.0));
if ((px == rp->drag->val.x) && (py == rp->drag->val.y)) return EINA_TRUE;
#ifdef EDJE_CALC_CACHE
rp->invalidate = 1;
void
_edje_box_init(void)
{
-
}
void
children = evas_object_box_children_get(rp->object);
while (children)
{
- Evas_Object *child_obj = children->data;
- if (evas_object_data_get(child_obj, "\377 edje.box_item"))
- i++;
- else
- {
+ Evas_Object *child_obj = children->data;
+ if (evas_object_data_get(child_obj, "\377 edje.box_item"))
+ i++;
+ else
+ {
_edje_box_layout_remove_child(rp, child_obj);
- _edje_box_child_remove(rp, child_obj);
- if (!evas_object_box_remove_at(rp->object, i))
- return EINA_FALSE;
- if (clear)
- evas_object_del(child_obj);
- }
- children = eina_list_remove_list(children, children);
+ _edje_box_child_remove(rp, child_obj);
+ if (!evas_object_box_remove_at(rp->object, i))
+ return EINA_FALSE;
+ if (clear)
+ evas_object_del(child_obj);
+ }
+ children = eina_list_remove_list(children, children);
}
return EINA_TRUE;
}
evas_object_event_callback_add(child_obj, EVAS_CALLBACK_DEL, _edje_user_def_del_cb, eud);
}
- return r;
+ return r;
}
EAPI Eina_Bool
{
Edje_User_Defined *eud;
Eina_List *l;
-
+
EINA_LIST_FOREACH(ed->user_defined, l, eud)
if (eud->type == EDJE_USER_TABLE_PACK &&
eud->u.table.child == child_obj &&
}
#define EDJE_PRELOAD_EMISSION "preload,done"
-#define EDJE_PRELOAD_SOURCE NULL
+#define EDJE_PRELOAD_SOURCE NULL
EAPI Eina_Bool
edje_object_preload(Evas_Object *obj, Eina_Bool cancel)
for (i = 0, count = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
- Edje_Part *ep;
+ Edje_Real_Part *rp;
+ Edje_Part *ep;
- rp = ed->table_parts[i];
- ep = rp->part;
+ rp = ed->table_parts[i];
+ ep = rp->part;
- if (ep->type == EDJE_PART_TYPE_IMAGE ||
- (ep->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object))
- count++;
+ if (ep->type == EDJE_PART_TYPE_IMAGE ||
+ (ep->type == EDJE_PART_TYPE_GROUP && rp->swallowed_object))
+ count++;
}
ed->preload_count = count;
if (count > 0)
{
- for (i = 0; i < ed->table_parts_size; i++)
- {
- Edje_Real_Part *rp;
- Edje_Part *ep;
-
- rp = ed->table_parts[i];
- ep = rp->part;
-
- if (ep->type == EDJE_PART_TYPE_IMAGE)
- {
- const char *file = NULL;
- const char *key = NULL;
-
- evas_object_event_callback_del_full(rp->object, EVAS_CALLBACK_IMAGE_PRELOADED, _edje_object_image_preload_cb, ed);
-
- evas_object_image_file_get(rp->object, &file, &key);
- if (!file && !key)
- {
- ed->preload_count--;
- }
- else
- {
- evas_object_event_callback_add(rp->object, EVAS_CALLBACK_IMAGE_PRELOADED, _edje_object_image_preload_cb, ed);
- evas_object_image_preload(rp->object, cancel);
- }
- count--;
- }
- else if (ep->type == EDJE_PART_TYPE_GROUP)
- {
- if (rp->swallowed_object) {
- char *tmp;
-
- if (rp->part->name)
- {
- tmp = alloca(strlen(rp->part->name) + 2);
- sprintf(tmp, "%s:", rp->part->name);
-
- edje_object_signal_callback_del(obj, EDJE_PRELOAD_EMISSION, tmp, _edje_object_signal_preload_cb);
- edje_object_signal_callback_add(obj, EDJE_PRELOAD_EMISSION, tmp, _edje_object_signal_preload_cb, ed);
- edje_object_preload(rp->swallowed_object, cancel);
- }
- else
- {
- ed->preload_count--;
- }
-
- count--;
- }
- }
- }
+ for (i = 0; i < ed->table_parts_size; i++)
+ {
+ Edje_Real_Part *rp;
+ Edje_Part *ep;
+
+ rp = ed->table_parts[i];
+ ep = rp->part;
+
+ if (ep->type == EDJE_PART_TYPE_IMAGE)
+ {
+ const char *file = NULL;
+ const char *key = NULL;
+
+ evas_object_event_callback_del_full(rp->object, EVAS_CALLBACK_IMAGE_PRELOADED, _edje_object_image_preload_cb, ed);
+
+ evas_object_image_file_get(rp->object, &file, &key);
+ if (!file && !key)
+ {
+ ed->preload_count--;
+ }
+ else
+ {
+ evas_object_event_callback_add(rp->object, EVAS_CALLBACK_IMAGE_PRELOADED, _edje_object_image_preload_cb, ed);
+ evas_object_image_preload(rp->object, cancel);
+ }
+ count--;
+ }
+ else if (ep->type == EDJE_PART_TYPE_GROUP)
+ {
+ if (rp->swallowed_object)
+ {
+ char *tmp;
+
+ if (rp->part->name)
+ {
+ tmp = alloca(strlen(rp->part->name) + 2);
+ sprintf(tmp, "%s:", rp->part->name);
+
+ edje_object_signal_callback_del(obj, EDJE_PRELOAD_EMISSION, tmp, _edje_object_signal_preload_cb);
+ edje_object_signal_callback_add(obj, EDJE_PRELOAD_EMISSION, tmp, _edje_object_signal_preload_cb, ed);
+ edje_object_preload(rp->swallowed_object, cancel);
+ }
+ else
+ {
+ ed->preload_count--;
+ }
+
+ count--;
+ }
+ }
+ }
}
else
{
- _edje_emit(ed, EDJE_PRELOAD_EMISSION, EDJE_PRELOAD_SOURCE);
+ _edje_emit(ed, EDJE_PRELOAD_EMISSION, EDJE_PRELOAD_SOURCE);
}
return EINA_TRUE;
Edje *ed;
ed = _edje_fetch(obj);
- if (!ed) return ;
- if (ed->update_hints == !!update) return ;
+ if (!ed) return;
+ if (ed->update_hints == !!update) return;
ed->update_hints = !!update;
if (update)
children = evas_object_table_children_get(rp->object);
while (children)
{
- Evas_Object *child_obj = children->data;
+ Evas_Object *child_obj = children->data;
- _edje_table_child_remove(rp, child_obj);
- if (!evas_object_data_get(child_obj, "\377 edje.table_item"))
- {
- evas_object_table_unpack(rp->object, child_obj);
- if (clear)
- evas_object_del(child_obj);
- }
- children = eina_list_remove_list(children, children);
+ _edje_table_child_remove(rp, child_obj);
+ if (!evas_object_data_get(child_obj, "\377 edje.table_item"))
+ {
+ evas_object_table_unpack(rp->object, child_obj);
+ if (clear)
+ evas_object_del(child_obj);
+ }
+ children = eina_list_remove_list(children, children);
}
}
switch (rp->part->type)
{
case EDJE_PART_TYPE_EXTERNAL:
- return _edje_external_content_get(rp->swallowed_object, partid);
+ return _edje_external_content_get(rp->swallowed_object, partid);
+
case EDJE_PART_TYPE_BOX:
- l = evas_object_box_children_get(rp->object);
- break;
+ l = evas_object_box_children_get(rp->object);
+ break;
+
case EDJE_PART_TYPE_TABLE:
- l = evas_object_table_children_get(rp->object);
- break;
+ l = evas_object_table_children_get(rp->object);
+ break;
+
default:
- return NULL;
+ return NULL;
}
v = strtol(partid, &p, 10);
/* rebuild alternative path */
char *
-_edje_merge_path(const char *alias, char * const *path)
+_edje_merge_path(const char *alias, char *const *path)
{
char *tmp;
unsigned int length = 1;
return tmp;
}
-
Edje_Real_Part *
_edje_real_part_recursive_get_helper(const Edje *ed, char **path)
{
char *alias;
alias = _edje_merge_path(eina_hash_find(ed->collection->alias, path[0]), path + 1);
- if (alias) {
- rp = _edje_real_part_recursive_get(ed, alias);
- free(alias);
- return rp;
- }
+ if (alias)
+ {
+ rp = _edje_real_part_recursive_get(ed, alias);
+ free(alias);
+ return rp;
+ }
}
//printf(" lookup: %s on %s\n", path[0], ed->parent ? ed->parent : "-");
idx = strchr(path[0], EDJE_PART_PATH_SEPARATOR_INDEXL);
if (idx)
{
- char *end;
+ char *end;
- end = strchr(idx + 1, EDJE_PART_PATH_SEPARATOR_INDEXR);
- if (end)
- {
- *end = '\0';
- *idx = '\0';
- idx++;
- }
+ end = strchr(idx + 1, EDJE_PART_PATH_SEPARATOR_INDEXR);
+ if (end)
+ {
+ *end = '\0';
+ *idx = '\0';
+ idx++;
+ }
}
rp = _edje_real_part_get(ed, path[0]);
switch (rp->part->type)
{
case EDJE_PART_TYPE_GROUP:
- if (!rp->swallowed_object) return NULL;
- ed = _edje_fetch(rp->swallowed_object);
- if (!ed) return NULL;
- path++;
- return _edje_real_part_recursive_get_helper(ed, path);
+ if (!rp->swallowed_object) return NULL;
+ ed = _edje_fetch(rp->swallowed_object);
+ if (!ed) return NULL;
+ path++;
+ return _edje_real_part_recursive_get_helper(ed, path);
+
case EDJE_PART_TYPE_BOX:
case EDJE_PART_TYPE_TABLE:
case EDJE_PART_TYPE_EXTERNAL:
- if (!idx) return rp;
- path++;
+ if (!idx) return rp;
+ path++;
+
+ child = _edje_children_get(rp, idx);
- child = _edje_children_get(rp, idx);
+ ed = _edje_fetch(child);
- ed = _edje_fetch(child);
+ if (!ed) return NULL;
+ return _edje_real_part_recursive_get_helper(ed, path);
- if (!ed) return NULL;
- return _edje_real_part_recursive_get_helper(ed, path);
default:
- return NULL;
+ return NULL;
}
}
for (i = 0; i < ed->table_parts_size; i++)
{
- Edje_Real_Part *rp;
+ Edje_Real_Part *rp;
- rp = ed->table_parts[i];
- if ((rp->part->name) && (!strcmp(rp->part->name, part))) return rp;
+ rp = ed->table_parts[i];
+ if ((rp->part->name) && (!strcmp(rp->part->name, part))) return rp;
}
return NULL;
}
if (ed->freeze < 0)
{
// printf("-------------########### OVER THAW\n");
- ed->freeze = 0;
+ ed->freeze = 0;
}
if ((ed->freeze == 0) && (ed->recalc))
{
// printf("thaw recalc\n");
- _edje_recalc(ed);
+ _edje_recalc(ed);
}
return ed->freeze;
}
rp->swallow_params.max.h = -1;
if ((type) && (!strcmp(type, "edje")))
{
- Evas_Coord w, h;
+ Evas_Coord w, h;
#if 0
- edje_object_size_min_get(rp->swallowed_object, &w, &h);
- rp->swallow_params.min.w = w;
- rp->swallow_params.min.h = h;
+ edje_object_size_min_get(rp->swallowed_object, &w, &h);
+ rp->swallow_params.min.w = w;
+ rp->swallow_params.min.h = h;
#endif
- edje_object_size_max_get(rp->swallowed_object, &w, &h);
- rp->swallow_params.max.w = w;
- rp->swallow_params.max.h = h;
+ edje_object_size_max_get(rp->swallowed_object, &w, &h);
+ rp->swallow_params.max.w = w;
+ rp->swallow_params.max.h = h;
}
else if ((type) && ((!strcmp(type, "text")) || (!strcmp(type, "polygon")) ||
- (!strcmp(type, "line"))))
+ (!strcmp(type, "line"))))
{
- Evas_Coord w, h;
+ Evas_Coord w, h;
- evas_object_geometry_get(rp->swallowed_object, NULL, NULL, &w, &h);
+ evas_object_geometry_get(rp->swallowed_object, NULL, NULL, &w, &h);
#if 0
- rp->swallow_params.min.w = w;
- rp->swallow_params.min.h = h;
+ rp->swallow_params.min.w = w;
+ rp->swallow_params.min.h = h;
#endif
- rp->swallow_params.max.w = w;
- rp->swallow_params.max.h = h;
- }
- {
- Evas_Coord w1, h1, w2, h2, aw, ah;
- Evas_Aspect_Control am;
-
- evas_object_size_hint_min_get(rp->swallowed_object, &w1, &h1);
- evas_object_size_hint_max_get(rp->swallowed_object, &w2, &h2);
- evas_object_size_hint_aspect_get(rp->swallowed_object, &am, &aw, &ah);
- rp->swallow_params.min.w = w1;
- rp->swallow_params.min.h = h1;
- if (w2 > 0) rp->swallow_params.max.w = w2;
- if (h2 > 0) rp->swallow_params.max.h = h2;
- switch (am)
- {
- case EVAS_ASPECT_CONTROL_NONE:
- rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_NONE;
- break;
- case EVAS_ASPECT_CONTROL_NEITHER:
- rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_NEITHER;
- break;
- case EVAS_ASPECT_CONTROL_HORIZONTAL:
- rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_HORIZONTAL;
- break;
- case EVAS_ASPECT_CONTROL_VERTICAL:
- rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_VERTICAL;
- break;
- case EVAS_ASPECT_CONTROL_BOTH:
- rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_BOTH;
- break;
- default:
- break;
- }
- rp->swallow_params.aspect.w = aw;
- rp->swallow_params.aspect.h = ah;
- evas_object_data_set(rp->swallowed_object, "\377 edje.swallowing_part", rp);
+ rp->swallow_params.max.w = w;
+ rp->swallow_params.max.h = h;
}
+ {
+ Evas_Coord w1, h1, w2, h2, aw, ah;
+ Evas_Aspect_Control am;
+
+ evas_object_size_hint_min_get(rp->swallowed_object, &w1, &h1);
+ evas_object_size_hint_max_get(rp->swallowed_object, &w2, &h2);
+ evas_object_size_hint_aspect_get(rp->swallowed_object, &am, &aw, &ah);
+ rp->swallow_params.min.w = w1;
+ rp->swallow_params.min.h = h1;
+ if (w2 > 0) rp->swallow_params.max.w = w2;
+ if (h2 > 0) rp->swallow_params.max.h = h2;
+ switch (am)
+ {
+ case EVAS_ASPECT_CONTROL_NONE:
+ rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_NONE;
+ break;
+
+ case EVAS_ASPECT_CONTROL_NEITHER:
+ rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_NEITHER;
+ break;
+
+ case EVAS_ASPECT_CONTROL_HORIZONTAL:
+ rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_HORIZONTAL;
+ break;
+
+ case EVAS_ASPECT_CONTROL_VERTICAL:
+ rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_VERTICAL;
+ break;
+
+ case EVAS_ASPECT_CONTROL_BOTH:
+ rp->swallow_params.aspect.mode = EDJE_ASPECT_CONTROL_BOTH;
+ break;
+
+ default:
+ break;
+ }
+ rp->swallow_params.aspect.w = aw;
+ rp->swallow_params.aspect.h = ah;
+ evas_object_data_set(rp->swallowed_object, "\377 edje.swallowing_part", rp);
+ }
#ifdef EDJE_CALC_CACHE
- rp->invalidate = 1;
+ rp->invalidate = 1;
#endif
}
void
_edje_real_part_swallow(Edje_Real_Part *rp,
- Evas_Object *obj_swallow,
- Eina_Bool hints_update)
+ Evas_Object *obj_swallow,
+ Eina_Bool hints_update)
{
if (rp->swallowed_object)
{
evas_object_stack_above(rp->swallowed_object, rp->object);
evas_object_event_callback_add(rp->swallowed_object,
EVAS_CALLBACK_DEL,
- _edje_object_part_swallow_free_cb,
- rp);
+ _edje_object_part_swallow_free_cb,
+ rp);
evas_object_event_callback_add(rp->swallowed_object,
EVAS_CALLBACK_CHANGED_SIZE_HINTS,
- _edje_object_part_swallow_changed_hints_cb,
- rp);
+ _edje_object_part_swallow_changed_hints_cb,
+ rp);
if (hints_update)
_edje_real_part_swallow_hints_update(rp);
if (rp->part->mouse_events)
{
_edje_callbacks_add(obj_swallow, rp->edje, rp);
- if (rp->part->repeat_events)
- evas_object_repeat_events_set(obj_swallow, 1);
- if (rp->part->pointer_mode != EVAS_OBJECT_POINTER_MODE_AUTOGRAB)
- evas_object_pointer_mode_set(obj_swallow, rp->part->pointer_mode);
- evas_object_pass_events_set(obj_swallow, 0);
+ if (rp->part->repeat_events)
+ evas_object_repeat_events_set(obj_swallow, 1);
+ if (rp->part->pointer_mode != EVAS_OBJECT_POINTER_MODE_AUTOGRAB)
+ evas_object_pointer_mode_set(obj_swallow, rp->part->pointer_mode);
+ evas_object_pass_events_set(obj_swallow, 0);
}
else
evas_object_pass_events_set(obj_swallow, 1);
/**
* @internal
- *
+ *
* for edje_cc
*/
EAPI void
if (!p->signal && !p->source)
{
- array = &edc->programs.nocmp;
- count = &edc->programs.nocmp_count;
+ array = &edc->programs.nocmp;
+ count = &edc->programs.nocmp_count;
}
else if (p->signal && !strpbrk(p->signal, "*?[\\")
- && p->source && !strpbrk(p->source, "*?[\\"))
+ && p->source && !strpbrk(p->source, "*?[\\"))
{
- array = &edc->programs.strcmp;
- count = &edc->programs.strcmp_count;
+ array = &edc->programs.strcmp;
+ count = &edc->programs.strcmp_count;
}
else if (p->signal && edje_program_is_strncmp(p->signal)
- && p->source && edje_program_is_strncmp(p->source))
+ && p->source && edje_program_is_strncmp(p->source))
{
- array = &edc->programs.strncmp;
- count = &edc->programs.strncmp_count;
+ array = &edc->programs.strncmp;
+ count = &edc->programs.strncmp_count;
}
else if (p->signal && edje_program_is_strrncmp(p->signal)
- && p->source && edje_program_is_strrncmp(p->source))
+ && p->source && edje_program_is_strrncmp(p->source))
{
- array = &edc->programs.strrncmp;
- count = &edc->programs.strrncmp_count;
+ array = &edc->programs.strrncmp;
+ count = &edc->programs.strrncmp_count;
}
else
{
- array = &edc->programs.fnmatch;
- count = &edc->programs.fnmatch_count;
+ array = &edc->programs.fnmatch;
+ count = &edc->programs.fnmatch_count;
}
for (i = 0; i < *count; ++i)
if ((*array)[i] == p)
{
- memmove(*array + i, *array + i + 1, sizeof (Edje_Program *) * (*count - i -1));
- (*count)--;
- break;
+ memmove(*array + i, *array + i + 1, sizeof (Edje_Program *) * (*count - i - 1));
+ (*count)--;
+ break;
}
}
/**
* @internal
- *
+ *
* for edje_cc
*/
EAPI void
if (!p->signal && !p->source)
{
- array = &edc->programs.nocmp;
- count = &edc->programs.nocmp_count;
+ array = &edc->programs.nocmp;
+ count = &edc->programs.nocmp_count;
}
else if (p->signal && !strpbrk(p->signal, "*?[\\")
- && p->source && !strpbrk(p->source, "*?[\\"))
+ && p->source && !strpbrk(p->source, "*?[\\"))
{
- array = &edc->programs.strcmp;
- count = &edc->programs.strcmp_count;
+ array = &edc->programs.strcmp;
+ count = &edc->programs.strcmp_count;
}
else if (p->signal && edje_program_is_strncmp(p->signal)
- && p->source && edje_program_is_strncmp(p->source))
+ && p->source && edje_program_is_strncmp(p->source))
{
- array = &edc->programs.strncmp;
- count = &edc->programs.strncmp_count;
+ array = &edc->programs.strncmp;
+ count = &edc->programs.strncmp_count;
}
else if (p->signal && edje_program_is_strrncmp(p->signal)
- && p->source && edje_program_is_strrncmp(p->source))
+ && p->source && edje_program_is_strrncmp(p->source))
{
- array = &edc->programs.strrncmp;
- count = &edc->programs.strrncmp_count;
+ array = &edc->programs.strrncmp;
+ count = &edc->programs.strrncmp_count;
}
else
{
- array = &edc->programs.fnmatch;
- count = &edc->programs.fnmatch_count;
+ array = &edc->programs.fnmatch;
+ count = &edc->programs.fnmatch_count;
}
*array = realloc(*array, sizeof (Edje_Program *) * (*count + 1));
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
install-pdf-recursive install-ps-recursive install-recursive \
installcheck-recursive installdirs-recursive pdf-recursive \
ps-recursive uninstall-recursive
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- fi; \
- done
- @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
+ $(am__make_dryrun) \
+ || test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(libalsa_snd_player_la_SOURCES)
DIST_SOURCES = $(libalsa_snd_player_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
$(am__aclocal_m4_deps):
install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
@$(NORMAL_INSTALL)
- test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
@list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
else :; fi; \
done; \
test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
}
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(libeet_sndfile_reader_la_SOURCES)
DIST_SOURCES = $(libeet_sndfile_reader_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
$(am__aclocal_m4_deps):
install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
@$(NORMAL_INSTALL)
- test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
@list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
else :; fi; \
done; \
test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
}
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(module_la_SOURCES)
DIST_SOURCES = $(module_la_SOURCES)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
$(am__aclocal_m4_deps):
install-pkgLTLIBRARIES: $(pkg_LTLIBRARIES)
@$(NORMAL_INSTALL)
- test -z "$(pkgdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdir)"
@list='$(pkg_LTLIBRARIES)'; test -n "$(pkgdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
else :; fi; \
done; \
test -z "$$list2" || { \
+ echo " $(MKDIR_P) '$(DESTDIR)$(pkgdir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(pkgdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkgdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkgdir)"; \
}
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_GEN_0 = @echo " GEN " $@;
SOURCES = $(edje_suite_SOURCES)
DIST_SOURCES = $(am__edje_suite_SOURCES_DIST)
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
ETAGS = etags
CTAGS = ctags
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-# Makefile.in generated by automake 1.11.3 from Makefile.am.
+# Makefile.in generated by automake 1.11.6 from Makefile.am.
# @configure_input@
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
@SET_MAKE@
VPATH = @srcdir@
+am__make_dryrun = \
+ { \
+ am__dry=no; \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
+ *) \
+ for am__flg in $$MAKEFLAGS; do \
+ case $$am__flg in \
+ *=*|--*) ;; \
+ *n*) am__dry=yes; break;; \
+ esac; \
+ done;; \
+ esac; \
+ test $$am__dry = yes; \
+ }
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
am__v_at_0 = @
SOURCES =
DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ALLOCA = @ALLOCA@
$(am__aclocal_m4_deps):
install-binSCRIPTS: $(bin_SCRIPTS)
@$(NORMAL_INSTALL)
- test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
@list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
+ if test -n "$$list"; then \
+ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+ fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \