Commit 2fd179ad authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

add Clutter bindings, patch by Carl-Anton Ingmarsson, fixes bug 463708

2007-08-06  Juerg Billeter  <j@bitron.ch>

	* vapi/Makefile.am, vapi/clutter-0.3.deps, vapi/clutter-0.3.vala,
	  vapi/packages/clutter-0.3, vapigen/valagidlparser.vala: add Clutter
	  bindings, patch by Carl-Anton Ingmarsson, fixes bug 463708

svn path=/trunk/; revision=420
parent f371f443
2007-08-06 Jürg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/clutter-0.3.deps, vapi/clutter-0.3.vala,
vapi/packages/clutter-0.3, vapigen/valagidlparser.vala: add Clutter
bindings, patch by Carl-Anton Ingmarsson, fixes bug 463708
2007-08-06 Jürg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/parser.y, vala/valaarray.vala,
......
......@@ -8,6 +8,8 @@ vala-1.0.vala: ../ccode/ccode.vala ../vala/vala.vala ../gobject/gobject.vala
dist_vapi_DATA = \
atk.vala \
cairo.vala \
clutter-0.3.vala \
clutter-0.3.deps \
dbus-glib-1.vala \
glib-2.0.vala \
gdk-2.0.deps \
......
This diff is collapsed.
namespace Clutter {
[Import]
public void init (out string[] args);
[Import]
public void main ();
[Import]
public void main_quit ();
}
This diff is collapsed.
Clutter cheader_filename="clutter/clutter.h"
ClutterActor::destroy has_emitter="1"
ClutterActor::show has_emitter="1"
ClutterActor::hide has_emitter="1"
ClutterBehaviour::apply has_emitter="1"
ClutterBehaviour::remove has_emitter="1"
ClutterStage::event has_emitter="1"
ClutterColor is_value_type="1"
clutter_actor_has_clip name="get_has_clip"
clutter_stage_fullscreen name="get_fullscreen"
clutter_button_event_button name="get_button"
......@@ -671,6 +671,19 @@ public class Vala.GIdlParser : CodeVisitor {
} else if (n.has_prefix ("Vte")) {
type.namespace_name = "Vte";
type.type_name = n.offset ("Vte".len ());
} else if (n.has_prefix ("Clutter")) {
type.namespace_name = "Clutter";
type.type_name = n.offset ("Clutter".len ());
if (type.type_name == "Fixed") {
type.namespace_name = null;
type.type_name = "int32";
} else if (type.type_name == "Unit") {
type.namespace_name = null;
type.type_name = "int32";
} else if (type.type_name == "Angle") {
type.namespace_name = null;
type.type_name = "int32";
}
} else if (n.has_prefix ("Goo")) {
type.namespace_name = "Goo";
type.type_name = n.offset ("Goo".len ());
......@@ -758,7 +771,10 @@ public class Vala.GIdlParser : CodeVisitor {
if (attributes != null) {
foreach (string attr in attributes) {
var nv = attr.split ("=", 2);
if (nv[0] == "hidden") {
if (nv[0] == "name") {
m.set_cname (m.name);
m.name = eval (nv[1]);
} else if (nv[0] == "hidden") {
if (eval (nv[1]) == "1") {
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment