[Vala] [PATCH] gtk-clutter-0.10 bindings
- From: Andrew Breiner <breinera gmail com>
- To: gord allott canonical com
- Cc: vala-list gnome org
- Subject: [Vala] [PATCH] gtk-clutter-0.10 bindings
- Date: Wed, 16 Dec 2009 22:34:36 -0600
I have a question about your patch. I applied the patch and copied the
vapi and deps to the right folder, but my question involves the
following code:
var gtkstage = new GtkClutter.Embed();
stage = gtkstage.get_stage();
Your patch made gtkstage.get_stage() return a Clutter.Actor, I was just
wondering why it didn't return a Clutter.Stage. I manually edited the
vapi file and told GtkClutter.Embed to have the following information:
public class Embed : Gtk.Container, Atk.Implementor, Gtk.Buildable {
[CCode (type = "GtkWidget*", has_construct_function = false)]
public Embed ();
public unowned Clutter.Stage get_stage ();
}
I changed the last line from Clutter.Actor get_stage() to Clutter.Stage
get_stage(). Now it likes this perfectly fine and allows me to embed a
stage with multiple actors instead of just having one actor. Just
wondering if I wasn't understanding something or what.
Thanks
Andy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]