From e5cb60a66aa0a18dc9dbd8cffc7e0cd00d254a46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= <jeremy@asynk.ch>
Date: Fri, 6 May 2011 15:46:01 +0200
Subject: add REvasPolygon#<<

---
 lib/efl/evas.rb   | 5 +++++
 spec/evas_spec.rb | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index b706b8b..7f0fd8b 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -266,6 +266,7 @@ module Efl
         end
         #
         class REvasRectangle < REvasObject
+            #
         end
         #
         class REvasLine < REvasObject
@@ -286,6 +287,10 @@ module Efl
             #
             search_prefixes 'evas_object_polygon_'
             #
+            def point_add *args
+                Native.evas_object_polygon_point_add @ptr, *args
+            end
+            alias :<< :point_add
         end
         #
         class REvasText < REvasObject
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index 926ff22..ccba590 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -611,8 +611,8 @@ describe Efl::Evas do
         it "xy point_add should work" do
             @p.point_add 10, 20
             @p.point_add 30, 40
-            @p.point_add 50, 60
-            @p.point_add 80, 80
+            @p.<< 50, 60
+            @p.<< 80, 80
         end
         #
         it "point clear shold work" do
-- 
cgit v1.1-2-g2b99