[Vala] bah! protected indeed! Re: structs unions and types



public class PhoneUIGlade : Gtk.Object {
    protected Glade.XML xml;
    public class window_widgets {
    Gtk.Widget blah;
    Gtk.Widget blah2;
    }
    protected window_widgets widgets;
    private Module module;
}

Does not work; a subclass cannot access the protected member "widgets" with the error:
 error: Access to private member `PhoneUIGlade.window_widgets.blah' denied

Making the class and variable public do not work:

public class PhoneUIGlade : Gtk.Object {
    protected Glade.XML xml;
    public class window_widgets {
    Gtk.Widget blah;
    Gtk.Widget blah2;
    }
    public window_widgets widgets;
    private Module module;
}

aggghhhh

Sam


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