discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=218064ffe0f9c11dfab0be65cc8b42ad3c10e0c2

commit 218064ffe0f9c11dfab0be65cc8b42ad3c10e0c2
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Aug 20 15:55:35 2015 -0400

    add some smart callbacks for comp objects on redirect/dirty state change
---
 src/bin/e_comp_object.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 4b324aa..8dacc20 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3279,6 +3279,7 @@ e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool 
set)
           e_comp_object_render_update_add(obj);
         else
           e_comp_object_damage(obj, 0, 0, cw->w, cw->h);
+        evas_object_smart_callback_call(obj, "redirected", NULL);
      }
    else
      {
@@ -3300,6 +3301,7 @@ e_comp_object_redirected_set(Evas_Object *obj, Eina_Bool 
set)
           }
         cw->native = 0;
         e_comp_object_render_update_del(obj);
+        evas_object_smart_callback_call(obj, "unredirected", NULL);
      }
 }
 
@@ -3391,6 +3393,7 @@ e_comp_object_dirty(Evas_Object *obj)
         eina_tiler_tile_size_set(cw->updates, 1, 1);
      }
    cw->update_count = cw->updates_full = cw->updates_exist = 0;
+   evas_object_smart_callback_call(obj, "dirty", NULL);
    if (cw->visible || (!visible) || (!cw->pending_updates)) return;
    /* force render if main object is hidden but mirrors are visible */
    e_comp_object_render(obj);

-- 


Reply via email to