Re: Setting frametype of any widget



Fredrik Rambris <fredrik rambris com> writes:

Sorry.. I mean GtkShadowType


Right. There's gtk_button_set_relief(), which will turn off the
bevel. You can't do SHADOW_IN or anything though.

If you want more, the only thing you can do is override the
expose_event and draw handlers for the button; the two ways to do that
are to connect to those signals and emit_stop_by_name() to keep the
default handlers from running, or to create a full-blown GtkObject
subclass. Unfortunately you have to replace all the drawing code, not
just the frame drawing code, with that approach.

Havoc





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