I tested it with "normal" GtkWindows, and yes, they work the same way
GtkApplicationWindows do.
But in my case I have multiple application windows with different
semantics. And this is not the intention behind GtkApplication. I guess
I could make it work, but it would be really happy and result in
This is what i found on the GtkApplication docs:
> While GtkApplication works fine with plain GtkWindows, it is recommended to
> use it together with GtkApplicationWindow.
So, you can use just a GtkWindow, or "TaskWindow" for say...
I've not tested, but it should work.
2016-08-13 10:21 GMT-03:
This is exactly what I thought of, but I also want to allow to run my
program without the main window (like ./prog --task which only opens a
task window). So I would have to run a GtkApplication without any
GtkApplicationWindow. As the applications life cycle is tied to its
ApplicationWindows this
GtkApplicationWindow, loads a menubar from resources automatically if
they exists.
So, You can have main window as GtkApplicationWindow and have tasks as
GtkWindow.
For GtkWindow you'll add a GtkMenuBar to it as any widget.
I'm not a Gtk+ expert, but this is how I would do.
2016-08-13 8:22 GMT-