seoz pushed a commit to branch master.
commit 150799348a97e90b75477d0c0f4b792dd69bbcb5
Author: Daniel Juyung Seo <[email protected]>
Date: Tue Mar 12 01:50:06 2013 +0900
termio.c: check elm rather than ecore for the drag and drop.
1. This includes ecore check as well.
2. Check the version more properly.
---
src/bin/termio.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/bin/termio.c b/src/bin/termio.c
index e1c60ae..3add31d 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -308,7 +308,7 @@ _cb_link_up(void *data, Evas *e __UNUSED__, Evas_Object
*obj __UNUSED__, void *e
}
}
-#if (ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 8)
+#if !((ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8))
static void
_cb_link_drag_move(void *data, Evas_Object *obj, Evas_Coord x, Evas_Coord y,
Elm_Xdnd_Action action)
{
@@ -381,7 +381,7 @@ _cb_link_move(void *data, Evas *e __UNUSED__, Evas_Object
*obj, void *event)
{
sd->link.down.down = EINA_FALSE;
sd->link.down.dnd = EINA_TRUE;
-#if (ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 8)
+#if !((ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8))
printf("dnd start %s %i %i\n", sd->link.string,
evas_key_modifier_is_set(ev->modifiers, "Control"),
evas_key_modifier_is_set(ev->modifiers, "Shift"));
@@ -3021,7 +3021,7 @@ _smart_pty_command(void *data)
evas_object_smart_callback_call(obj, "command", (void *)sd->pty->cur_cmd);
}
-#if (ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 8)
+#if !((ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8))
static void
_smart_cb_drag_enter(void *data __UNUSED__, Evas_Object *o __UNUSED__)
{
@@ -3133,7 +3133,7 @@ termio_add(Evas_Object *parent, Config *config, const
char *cmd, Eina_Bool login
ELM_GESTURE_STATE_ABORT, _smart_cb_gest_zoom_abort,
obj);
-#if (ECORE_VERSION_MAJOR > 1) || (ECORE_VERSION_MINOR >= 8)
+#if !((ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8))
elm_drop_target_add(sd->event,
ELM_SEL_FORMAT_TEXT | ELM_SEL_FORMAT_IMAGE,
_smart_cb_drag_enter, obj,
--
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev