projects
/
ruby-edje.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7cbfe3
)
Implemented Edje.collections.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Tue, 15 Mar 2005 18:08:01 +0000
(18:08 +0000)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Tue, 15 Mar 2005 18:08:01 +0000
(18:08 +0000)
src/rb_edje_main.c
patch
|
blob
|
history
diff --git
a/src/rb_edje_main.c
b/src/rb_edje_main.c
index 9c075de74727125961e28f6945efe61e8d342454..e00a2491e5ab9330dc9b7f66e4fc7500a3f033d3 100644
(file)
--- a/
src/rb_edje_main.c
+++ b/
src/rb_edje_main.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: rb_edje_main.c
139 2004-10-30 09:41:17
Z tilman $
+ * $Id: rb_edje_main.c
287 2005-03-15 18:08:01
Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
@@
-79,6
+79,27
@@
static VALUE m_frametime_set (VALUE self, VALUE val)
return Qnil;
}
return Qnil;
}
+static VALUE m_collections_get (VALUE self, VALUE file)
+{
+ VALUE ary;
+ Evas_List *list, *l;
+
+ Check_Type (file, T_STRING);
+
+ ary = rb_ary_new ();
+
+ list = edje_file_collection_list (StringValuePtr (file));
+ if (!list)
+ return ary;
+
+ for (l = list; l; l = l->next)
+ rb_ary_push (ary, rb_str_new2 (l->data));
+
+ edje_file_collection_list_free (list);
+
+ return ary;
+}
+
void Init_edje (void)
{
rb_require ("evas");
void Init_edje (void)
{
rb_require ("evas");
@@
-89,6
+110,7
@@
void Init_edje (void)
rb_define_module_function (mEdje, "thaw", m_thaw, 0);
rb_define_module_function (mEdje, "frametime", m_frametime_get, 0);
rb_define_module_function (mEdje, "frametime=", m_frametime_set, 1);
rb_define_module_function (mEdje, "thaw", m_thaw, 0);
rb_define_module_function (mEdje, "frametime", m_frametime_get, 0);
rb_define_module_function (mEdje, "frametime=", m_frametime_set, 1);
+ rb_define_module_function (mEdje, "collections", m_collections_get, 1);
Init_Edje ();
Init_Part ();
Init_Edje ();
Init_Part ();