projects
/
ruby-edje.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edje_init() and edje_shutdown() aren't exported anymore.
[ruby-edje.git]
/
src
/
rb_edje.c
diff --git
a/src/rb_edje.c
b/src/rb_edje.c
index 483067c7c76142ddc7e75d4f614a8a9fa2742b83..34b6dc534ac7daf44b3a5eba48f0e28a2e3d6327 100644
(file)
--- a/
src/rb_edje.c
+++ b/
src/rb_edje.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_edje.c 2
4 2004-06-26 22:59:56
Z tilman $
+ * $Id: rb_edje.c 2
8 2004-07-08 18:35:51
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-44,6
+44,13
@@
return Qnil; \
}
return Qnil; \
}
+static void c_free (Evas_Object **e)
+{
+ c_evas_object_free (e);
+
+ edje_shutdown ();
+}
+
static VALUE c_new (VALUE klass, VALUE evas)
{
VALUE self, argv[1];
static VALUE c_new (VALUE klass, VALUE evas)
{
VALUE self, argv[1];
@@
-58,8
+65,10
@@
static VALUE c_new (VALUE klass, VALUE evas)
GET_OBJ (evas, Evas, e, "Evas");
GET_OBJ (evas, Evas, e, "Evas");
+ edje_init ();
+
self = Data_Make_Struct (klass, Evas_Object *, c_evas_object_mark,
self = Data_Make_Struct (klass, Evas_Object *, c_evas_object_mark,
- c_
evas_object_
free, edje);
+ c_free, edje);
*edje = edje_object_add (*e);
argv[0] = evas;
*edje = edje_object_add (*e);
argv[0] = evas;