Re: [Vala] GtkTemplate/GtkChild



Excuse the spam...
Everything works as it should



Am 17.04.19 um 13:06 schrieb Wolfgang Mauer:
Hi all,
if i use "GtkTemplate/GtkChild" at what time will the fields become usable?


[GtkTemplate(ui = "/valaDevelop/overlay.glade")]
public class MySourceView : Overlay
{
    [GtkChild] SourceView textview;
    ...


If use in "public MySourceView()" with
(SourceBuffer)textview.get_buffer()
i get

Gtk-CRITICAL **: 12:56:50.464: gtk_text_view_get_buffer: assertion 'GTK_IS_TEXT_VIEW (text_view)' failed



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]