Re: [gtk-list] Re: .99.4 broke GTK_TOGGLE_BUTTON(button)->active (PLEASE READ)



On Tue, 3 Mar 1998, Tom Bech wrote:

> 
> [snip]
> >
> >  GTK_WIDGET(GTK_LABEL(GTK_BUTTON(button)->child))->allocation.x--;
> >  GTK_WIDGET(GTK_LABEL(GTK_BUTTON(button)->child))->allocation.y--;
> >
> 
> Hm. You are aware that a button can have children that may not be
> labels? Not that it matters in this case, - but why the typecast to
> a label in the snippet above?

well, is there a better way to do that? i'm only trying to get the effect
of having the button contents pressed. i'm very open to ideas if anyone
knows how i *should* do it :)

 _        _  __     __             _ _                                  _
|        / |/ /_ __/ /_____         |       Nuke Skyjumper               |
|       /    / // /  '_/ -_)        |         "Master of the Farce"      |
|_     /_/|_/\_,_/_/\_\\__/        _|_           nuke@bayside.net       _|



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