[Vala] GtkTemplate/GtkChild



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



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