Re: Can't retrieve actual GdkWindow for a Gtk::Widget



Marco Scholten wrote:

A Gtk::Button has no window for drawing, you can test this with button.has_no_window(). So button.get_window()->gobj() will return the GdkWindow of its container.

It does have an event_window for handling events, that's the one you want, you can get this with:

   button.gobj()->event_window

Many thanks, Marco - that did the trick!

Cheers,
Tim Shead



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