From: Tilman Sauerbeck Date: Tue, 10 Aug 2004 13:33:49 +0000 (+0000) Subject: Don't try to get an Evas_Object * from a Ruby object. X-Git-Url: http://git.code-monkey.de/?p=ruby-esmart.git;a=commitdiff_plain;h=1080e2ac369c8b0a3eed2d7a089b5bc650b0ade9 Don't try to get an Evas_Object * from a Ruby object. --- diff --git a/src/esmart_container/rb_esmart_container.c b/src/esmart_container/rb_esmart_container.c index 9eb89b2..4b6c5ce 100644 --- a/src/esmart_container/rb_esmart_container.c +++ b/src/esmart_container/rb_esmart_container.c @@ -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; }