Search code examples
c++gtkgtkmm

Gtkmm - Hiding a window without closing the application


How do i hide a toplevel window without closing it?

NdmWindow is a class inherited from Gtk::Window. I have added the instance of NdmWindow to Gtk::Application.

Now, how do i hide it instead of closing it?

Thanks in advance..


Solution

  • window->hide();

    Don't forget to look at classes that Gtk::Window inherits from.

    EDIT

    I don't know, but my suggestion is to try hold(), and then release() after you show the next window.