Re: GtkApplication with different ApplicationWindows

2016-08-14 Thread zahlenmeer
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

Re: GtkApplication with different ApplicationWindows

2016-08-14 Thread Victor Aurélio Santos
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:

Re: GtkApplication with different ApplicationWindows

2016-08-13 Thread zahlenmeer
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

Re: GtkApplication with different ApplicationWindows

2016-08-13 Thread Victor Aurélio Santos
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-

GtkApplication with different ApplicationWindows

2016-08-13 Thread zahlenmeer
Hi everyone, I am working on a project where I am struggling to decide which classes/objects I should use. I use gtk3 but it's still a classical application, so no fancy appmenu, CSD and not primarily designed for the Gnome DE. The program works as follows: - A unique main window, with a main menu