[gtkmm] Gtk::Window::on_delete_event



Hi Bart,

I am not sure about how to use GdkEventAny.
I want to invoke cGui.hide() if the x is selected:

  Gtk::Window cGui();
  Gdk::Event hideEvent = Gdk::Event(); //? want a hide()
  cGui.on_delete_event(hideEvent);     //?
  Gtk::Main::run(cGui);

just overriding Gtk::Window::on_delete_event(GdkEventAny* event) works
fine for me.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]