Re: window is not shown



Well, as it is written in tutorial you should use run(...) method of Gtk::Main object instead of simply calling some show*() methods of Gtk::Window. In your case:

kit.run( window);

Samvel



On Sat, 19 Aug 2006 12:49:00 -0500, Diether Knof <dknof gmx de> wrote:

Hello,

when I hide a window and show it again before the main event loop is called, the window is not shown.

example code:
#include <gtkmm.h>

int main(int argc, char *argv[])
{
  Gtk::Main kit(argc, argv);
  Gtk::Window window;
  window.show_now();
  window.hide();
  window.show();

  while(true)
    kit.iteration();

  return EXIT_SUCCESS;
}



Greetings
Diether Knof



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



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