/*
- * $Id: rb_edje_main.c 287 2005-03-15 18:08:01Z tilman $
+ * $Id: rb_edje_main.c 345 2005-05-08 17:03:21Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
#include "rb_edje_main.h"
#include "rb_edje.h"
#include "rb_part.h"
-#include "rb_messages.h"
/*
* call-seq:
*/
static VALUE m_freeze (VALUE self)
{
+ edje_init ();
edje_freeze ();
+ edje_shutdown ();
return Qnil;
}
*/
static VALUE m_thaw (VALUE self)
{
+ edje_init ();
edje_thaw ();
+ edje_shutdown ();
return Qnil;
}
*/
static VALUE m_frametime_get (VALUE self)
{
- return rb_float_new (edje_frametime_get ());
+ VALUE ret;
+
+ edje_init ();
+ ret = rb_float_new (edje_frametime_get ());
+ edje_shutdown ();
+
+ return ret;
}
/*
{
Check_Type (val, T_FLOAT);
+ edje_init ();
edje_frametime_set (NUM2DBL (val));
+ edje_shutdown ();
return Qnil;
}
ary = rb_ary_new ();
+ edje_init ();
+
list = edje_file_collection_list (StringValuePtr (file));
- if (!list)
- return ary;
+ if (list) {
+ for (l = list; l; l = l->next)
+ rb_ary_push (ary, rb_str_new2 (l->data));
- for (l = list; l; l = l->next)
- rb_ary_push (ary, rb_str_new2 (l->data));
+ edje_file_collection_list_free (list);
+ }
- edje_file_collection_list_free (list);
+ edje_shutdown ();
return ary;
}
Init_Edje ();
Init_Part ();
- Init_Messages ();
}