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

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