2011-11-21 13:01, Phong Cao skrev:
Hello everybody,You need one Gtk::Main::run(d_popup_win) for each d_popup_win.hide(), otherwise the main loop that was started by Gtk::Main::run(topwin) in main.cc ends. Add a line in TopWin::onDrawingAreaClicked: else if ((event->type == GDK_BUTTON_PRESS) && (event->button == 3)) { if (is_fullscreen) { // if we are in fullscreen mode... if (is_hide) { // ...and d_popup_win is hidden then show d_popup_win d_popup_win.show(); is_hide = false; Gtk::Main::run(d_popup_win); // !!! added } A question that you don't have to answer: Are you really sure you don't want to use a Gtk::Dialog instead? Kjell Ahlstedt |