----- Original Message ----- From: "Paul Rivera" <[EMAIL PROTECTED]>
To: <gtkmm-list@gnome.org>
Sent: Monday, May 02, 2005 5:18 AM
Subject: Re: window handle



My apologies.  I should have included the source code.
here it is:

#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/box.h>
#include <gdkmm.h>


using namespace Gtk;

int main( int argc, char** argv )
{

   Main kit( argc, argv );
   Window window;
   HBox box;

   window.add( box );

   GdkWindow* win;
   win = window.get_window()->gobj();

   Main::run( window );
   return 0;
}


When the following lines are commented out, I get no segfaults: GdkWindow* win; win = window.get_window()->gobj();

any ideas?


The GdkWindow is not created until the Gtk::Window is realized and at this point it is not.


--
Marco
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to