Re: word wrap in liststore column



On Sat, 26 Jun 2010 02:17:11 -0400
Tristan Van Berkom <tvb gnome org> wrote:

On Fri, Jun 25, 2010 at 8:44 PM, Mick <bareman tpg com au> wrote:
I'm stuck again.

I wish to set word-wrap for a single column in a treeview liststore,
I've found the options I need to set but can't for the life of me
find an example of how to do it.


I think the catch is that you need to set an explicit wrap-width
when specifying wrap-mode on the GtkCellRendererText.

I know that, I have searched but not found anything that says "this is
how you set the properties of ..."

what I'm trying to do is set wrap-width to 60 characters and wrap-mode
to word somewhat like this:

GtkSomeObscureFunction(list->action, wrap-width = 60, 
                        wrap-mode = PANGO_WRAP_WORD);

I also wish to set alternate rows backgrounds to white or pale blue,
how is this done?



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