Q: How to obtain a GdkDrawable* from a Gtk::DrawingArea?



Greetings everybody!

	I need the XID returned by gdk_x11_drawable_get_xid() for a
Gtk::DrawingArea. So do I this...

Gtk::DrawingArea* pDrawingArea = NULL;
// create drawing-area etc.
gdk_x11_drawable_get_xid((GdkDrawable*)pDrawingArea->get_window()->gobj())

but that causes a major failure of my program.

	From looking at gdktypes.h I assumed that a GdkWindow is nothing more
than a GdkDrawable. Apparently this assumption seems to be wrong. So
what is the correct (gtkmm) way of doing this?

Thanks in advance for your time and kind advice!

Best regards...

MacSlow

-- 
Mirco "MacSlow" M�<macslow bangang de>




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