I have the following structure,
typedef struct _MainWin
{
GtkWindow parent;
GtkWidget* scroll;
GtkWidget* box;
}MainWin;
I have created the application main window from this structure. Now I need the main window in full screen. When I tried to call,
gtk_window_fullscree(GTK_WINDOW(mw);
Where mw is object of MainWin. I got the following error message gtk_window_fullscreen: assertionGTK_IS_WINDOW (window)’ failed`
How can I lead mw to GtkWindow?
Thank you.
This seems wrong. Your GtkWindow should be a pointer too, and created using
gtk_window_new()like any other GTK+ widget. This looks like you’re trying to “subclass” the GtkWindow struct, which I don’t think you can do like this.