[Vala] C# developer, newbie question



Hi all,

in gtk-sharp i use the Gtk.Builder to "ExtendWithTemplate" my Widget.

In vala tried Gtk.Builder "extend_with_template".


In gtk-sharp i can define widgets like this:

glade-file

<objectclass="GtkBox"id="mainBox">

....

<objectclass="GtkBox"id="startPage">


source-file

[Builder.Object]privateBoxmainBox;
[Builder.Object]privateBoxstartPage;


If i try this in vala with

[GtkChild] private Box mainBox;

i get the error "error: [GtkChild] is only allowed in classes with a [GtkTemplate] attribute"

Is there a other attribute for the gtk.builder using "extend_with_template"?


Thanks for help

Wolfgang



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]