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:


Many thanks, Marco - that did the trick!

Tim Shead

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