Re: creating a custom button in GTK--



Jan Hudec wrote:
But we are talking about creating it. It takes to set some flags and
invoking some magic in realize or map or thereabout, but I don't recall
the details.

this is what I'd be interested in, though :)

Anyway, if you subclass Gtk::Button instead of Gtk::Bin, you will get
all this, since Gtk::Button does have a window.


that get_window() in Bin actually returns the parent window. but maybe this is the explanation: as Bin doesn't actually have a window, that's the best it can do...


Yes. The method is defined that way. It returns the window that the
widget is drawn on.

I gave it a try, and for Gtk::Button, get_window() also returns the parent, the window the button is contained in, not a window which would be the button itself..


akos



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