gtk faq (was Re: where's the archive?)




If there is already no FAQ maintainer, I'll volunteer to be it. This would
be a good question to add to it, along with how do I set the color of a
widget. That one seems to come up quite often :)

Brian
   
> FAQ alert! (Thanks for trying to check the archives; if this were in the
> FAQ or archives, as it should be, you would have found it. We need a FAQ
> maintainer.)
> 
> gtk_label_set_justify() sets the position of multiple lines of text in the
> label with respect to each other. That is,
> 
>  foo bar bar
>  bar foo
> 
>  foo bar bar
>    bar foo
> 
>  foo bar bar
>      bar foo
> 
> gtk_misc_set_alignment() changes the position of the entire text block
> within the label's size allocation, and it's probably what you want. The
> two alignment args are 0.0 for top/left and 1.0 for bottom/right and 0.5
> for center. 
> 
> Havoc
> 
> 
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 



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