discomfitor pushed a commit to branch enlightenment-0.19.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6298e7d81cb1950fb4ac2732420b80b8246495f9

commit 6298e7d81cb1950fb4ac2732420b80b8246495f9
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 9b1b4a7..e823a34 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -3187,6 +3187,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
      {
@@ -3208,6 +3209,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);
      }
 }
 
@@ -3296,6 +3298,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