Problem:
I want to make a Gtk.Label child but it seems I cannot make a child of that type. I checked here to find a possible fix, but I cannot get my head around it. What should I do in my case to fix that problem. I basically only want a button with an extra property. Thanks you!
Error:
error: field ‘parent_instance’ has incomplete type
64 | GtkLabel parent_instance;
error: unknown type name ‘GtkLabelClass’
69 | GtkLabelClass parent_class;
Snippet:
namespace Redacted {
public class StyleLabel : Gtk.Widget {
public StyleLabel(Redacted.Preferences.Styles style) {
Object (label: style.ToString ());
this.style = style;
}
public Redacted.Preferences.Styles style { get; set; }
}
}