[Vala] C# developer, newbie question
- From: Wolfgang Mauer <wolfgang mauer kabelmail de>
- To: vala-list gnome org
- Subject: [Vala] C# developer, newbie question
- Date: Tue, 18 Dec 2018 10:26:48 +0100
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]