Re: [Vala] Blitzen: A Vala Application Server
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: Re: [Vala] Blitzen: A Vala Application Server
- Date: Mon, 15 Nov 2010 00:45:32 +0100
Hi!
I have written a "hello world" application for blitzen using gtkon. you may find
the source here:
http://code.google.com/p/gtkaml/source/browse/trunk/examples/blitzen/
I have noticed that widgets in Stk are using different reference counting rules
than Gtk. So you have to explicitly define the variables as class fields, else
all widgets gets destroyed. For example:
class Foo extends View {
construct {
var vb = new VBox ();
vb.add (new Label.with_text ("hello world"));
set_child (vb);
}
}
This code is wrong, but it should. You have to do this in order to get it working:
class Foo extends View {
VBox vb;
Label label;
construct {
vb = new VBox ();
label = new Label.with_text ("hello world");
vb.add (label);
set_child (vb);
}
}
Another thing i have noticed is that you use 'void*' as return value for many
methods and signals in your API, i think type and owning rules must be enforced,
so code gets simpler and you dont have to manually work with pointers.
--pancake
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]