rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=63821bd2703fb749b21adbfe6d170181c96fe0ff

commit 63821bd2703fb749b21adbfe6d170181c96fe0ff
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Dec 1 14:33:29 2015 +0200

    diff: add FUNCTION_TYPE_SIGNALSBLOCK
---
 src/bin/editor/diff.c | 5 +++++
 src/bin/editor/diff.h | 1 +
 2 files changed, 6 insertions(+)

diff --git a/src/bin/editor/diff.c b/src/bin/editor/diff.c
index f2c7383..58e56b0 100644
--- a/src/bin/editor/diff.c
+++ b/src/bin/editor/diff.c
@@ -20,6 +20,7 @@
 #include "diff.h"
 #include "change.h"
 
+typedef Eina_Bool (* function_type_signalsblock) (Change*);
 typedef Eina_Bool (* function_type_int) (Evas_Object *, Change*, Eina_Bool, 
int);
 typedef Eina_Bool (* function_type_string_string_double_double) (Evas_Object 
*, Change*, Eina_Bool,
                                                                  const char *, 
const char *, double, double);
@@ -77,6 +78,8 @@ _apply(Evas_Object *obj, Function_Info *fi)
      {
       case FUNCTION_TYPE_NONE:
          return true;
+      case FUNCTION_TYPE_SIGNALSBLOCK:
+         return ((function_type_signalsblock)fi->function)(NULL);
       case FUNCTION_TYPE_INT:
          return ((function_type_int)fi->function)(obj, NULL, false, 
fi->args.type_i.i1);
       case FUNCTION_TYPE_STRING_STRING_DOUBLE_DOUBLE:
@@ -191,6 +194,7 @@ diff_update(Diff *diff, Diff *new_diff)
      {
       case FUNCTION_TYPE_NONE:
       case FUNCTION_TYPE_INT:
+      case FUNCTION_TYPE_SIGNALSBLOCK:
          break;
       case FUNCTION_TYPE_STRING_STRING_DOUBLE_DOUBLE:
          eina_stringshare_del(diff->redo.args.type_ssdd.s1);
@@ -340,6 +344,7 @@ diff_free(Diff *diff)
      {
       case FUNCTION_TYPE_NONE:
       case FUNCTION_TYPE_INT:
+      case FUNCTION_TYPE_SIGNALSBLOCK:
          break;
       case FUNCTION_TYPE_STRING_STRING_DOUBLE_DOUBLE:
          eina_stringshare_del(diff->redo.args.type_ssdd.s1);
diff --git a/src/bin/editor/diff.h b/src/bin/editor/diff.h
index 17cd1f3..09e5fa9 100644
--- a/src/bin/editor/diff.h
+++ b/src/bin/editor/diff.h
@@ -23,6 +23,7 @@
 
 typedef enum {
    FUNCTION_TYPE_NONE = 0,
+   FUNCTION_TYPE_SIGNALSBLOCK,
    FUNCTION_TYPE_INT,
    FUNCTION_TYPE_STRING_STRING_DOUBLE_DOUBLE,
    FUNCTION_TYPE_STRING_STRING_DOUBLE_INT,

-- 


Reply via email to