Re: window handle
- From: "Marco Scholten" <mscholtn xs4all nl>
- To: <gtkmm-list gnome org>
- Subject: Re: window handle
- Date: Mon, 2 May 2005 11:33:18 +0200
----- Original Message -----
From: "Paul Rivera" <paul_mrivera yahoo com>
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]