I’m trying to subclass GtkApplicationWindow and need to call gtk_window_get_application() to access a property of my custom application class (a subclass of GtkApplication) needed by one of the widgets that the window will contain. I’ve tried calling gtk_window_get_application() inside the sub-class’s overridden ‘constructed’ method, where I’m creating the widgets, and it just returns NULL despite ‘application’ being passed during window construction:
My understanding is that an object’s ‘constructed’ method is invoked after all construction properties have been set, so why would gtk_window_get_application() return NULL when called from that method?