/*
- * $Id: rb_edje.c 24 2004-06-26 22:59:56Z tilman $
+ * $Id: rb_edje.c 28 2004-07-08 18:35:51Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
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];
GET_OBJ (evas, Evas, e, "Evas");
+ edje_init ();
+
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;
/*
- * $Id: rb_edje_main.c 17 2004-06-22 19:37:54Z tilman $
+ * $Id: rb_edje_main.c 28 2004-07-08 18:35:51Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
#include "rb_edje_main.h"
#include "rb_edje.h"
+#ifdef DEBUG
static VALUE m_init (VALUE self)
{
return INT2FIX (edje_init ());
static VALUE m_shutdown (VALUE self)
{
- rb_gc_start ();
-
return INT2FIX (edje_shutdown ());
}
+#endif
static VALUE m_freeze (VALUE self)
{
mEdje = rb_define_module ("Edje");
+#ifdef DEBUG
rb_define_module_function (mEdje, "init", m_init, 0);
rb_define_module_function (mEdje, "shutdown", m_shutdown, 0);
+#endif
+
rb_define_module_function (mEdje, "freeze", m_freeze, 0);
rb_define_module_function (mEdje, "thaw", m_thaw, 0);
rb_define_module_function (mEdje, "frametime", m_frametime_get, 0);