Re: [Vala] C# developer, newbie question



Good example so far, but not answer my question...


Am 18.12.18 um 12:00 schrieb Corentin Noël:
Hi Wolfgang!

You can find an example of Gtk.Builder with Vala soon in Valadoc itself
(will be at this page once the site get refreshed:
https://valadoc.org/gtk+-3.0/Gtk.Builder.html), in the meantime a
complete example is available from this commit:

https://github.com/Valadoc/valadoc-org/commit/7310a079d4faf67939641aa3715fc0963d0f8cc5

Hope it helps,
Regards,
Corentin

Le mardi 18 décembre 2018 à 10:26 +0100, Wolfgang Mauer a écrit :
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

_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list



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