I have a function in gtkmm in the main window which opens a message box on the Help->About selection. The function is as follow:-
bool Main_window::on_about_selected(GdkEventButton *f_event)
{
Gtk::MessageDialog dialog(*this, "Msg Box example");
// left the rest
dialog.run();
}
this pointer passes the Main_window since it calls the function.
How should i pass this argument when i want to call a message box dialog from another file other than the Main_window?
How do i set parent of this message dialog to be the window on which i want this to be called?
how do i get the top level window?