Don't try to get an Evas_Object * from a Ruby object.
authorTilman Sauerbeck <tilman@code-monkey.de>
Tue, 10 Aug 2004 13:33:49 +0000 (13:33 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 10 Aug 2004 13:33:49 +0000 (13:33 +0000)
src/esmart_container/rb_esmart_container.c

index 9eb89b21e897eee221869065ebeeb0810bae0a8e..4b6c5ce818dd3739344c6bff844fc38a85c56007 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_esmart_container.c 56 2004-08-10 13:28:01Z tilman $
+ * $Id: rb_esmart_container.c 57 2004-08-10 13:33:49Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
@@ -54,9 +54,9 @@ static VALUE c_append_element (VALUE self, VALUE element)
        GET_OBJ (self, RbEvasObject, e);
 
        CHECK_CLASS (element, cEvasObject);
-       GET_OBJ (element, Evas_Object *, o);
+       GET_OBJ (element, RbEvasObject, o);
 
-       esmart_container_element_append (e->real, *o);
+       esmart_container_element_append (e->real, o->real);
 
        return Qnil;
 }
@@ -66,9 +66,9 @@ static VALUE c_prepend_element (VALUE self, VALUE element)
        GET_OBJ (self, RbEvasObject, e);
 
        CHECK_CLASS (element, cEvasObject);
-       GET_OBJ (element, Evas_Object *, o);
+       GET_OBJ (element, RbEvasObject, o);
 
-       esmart_container_element_prepend (e->real, *o);
+       esmart_container_element_prepend (e->real, o->real);
 
        return Qnil;
 }
@@ -78,9 +78,9 @@ static VALUE c_remove_element (VALUE self, VALUE element)
        GET_OBJ (self, RbEvasObject, e);
 
        CHECK_CLASS (element, cEvasObject);
-       GET_OBJ (element, Evas_Object *, o);
+       GET_OBJ (element, RbEvasObject, o);
 
-       esmart_container_element_remove (e->real, *o);
+       esmart_container_element_remove (e->real, o->real);
 
        return Qnil;
 }