[Pkg-e-commits] [SCM] Python bindings for Evas branch, upstream-vcs, updated. a2d7e40fb9fbbe948f479174a461f735a2f530fb

cmarcelo cmarcelo at alioth.debian.org
Sat May 24 16:32:00 UTC 2008


The following commit has been merged in the upstream-vcs branch:
commit a2d7e40fb9fbbe948f479174a461f735a2f530fb
Author: cmarcelo <cmarcelo>
Date:   Tue Apr 1 21:07:04 2008 +0000

    Python-Evas: adding Canvas.feed_hold() method.

diff --git a/evas/evas.c_evas_canvas.pxi b/evas/evas.c_evas_canvas.pxi
index 01116a5..4d4d974 100644
--- a/evas/evas.c_evas_canvas.pxi
+++ b/evas/evas.c_evas_canvas.pxi
@@ -37,6 +37,7 @@ cdef public class Canvas [object PyEvasCanvas, type PyEvasCanvas_Type]:
            font_cache, font_path_clear, font_path_append, font_path_prepend,
            font_path_list, font_available_list, font_hinting_can_hint,
            font_hinting_set, font_hinting_get, font_hinting
+    @group Event feeding: feed_hold
     @group Often unused: damage_rectangle_add, obscured_rectangle_add,
            obscured_clear, render_updates, render, norender, freeze_get,
            output_method_set, output_method_get, output_method
@@ -520,6 +521,10 @@ cdef public class Canvas [object PyEvasCanvas, type PyEvasCanvas_Type]:
         "@rtype: int"
         return evas_event_freeze_get(self.obj)
 
+    # Event feeding
+    def feed_hold(self, int hold, unsigned int timestamp):
+        evas_event_feed_hold(self.obj, hold, timestamp, NULL)
+
     # Factory
     def Rectangle(self, **kargs):
         """Factory of L{evas.Rectangle} associated with this canvas.
diff --git a/include/evas/c_evas.pxd b/include/evas/c_evas.pxd
index 71f88cd..eebfd9a 100644
--- a/include/evas/c_evas.pxd
+++ b/include/evas/c_evas.pxd
@@ -310,6 +310,8 @@ cdef extern from "Evas.h":
     void evas_event_thaw(Evas *e)
     int evas_event_freeze_get(Evas *e)
 
+    void evas_event_feed_hold(Evas *e, int hold, unsigned int timestamp, void *data)
+
     void evas_font_path_clear(Evas *e)
     void evas_font_path_append(Evas *e, char *path)
     void evas_font_path_prepend(Evas *e, char *path)

-- 
Python bindings for Evas



More information about the Pkg-e-commits mailing list