Re: List Alignment



Hello..
What you need to set is xalign property, not alignment (alignment
affects multi-line constructs).

So, your code should be:
g_object_set( G_OBJECT( renderer_text ),
              "font", FONT,
              "xalign", 0.5,
              NULL );



2008/11/25 Demetris Zavorotnichenko <fgcity4652 cytanet com cy>:
> Hi everyone.
>
>
>
> I'm working with list Views now.
>
>
>
> I populated them but I can't seem to make the text align on the columns as I
> want.
>
>
>
> Here is what I do:
>
>
>
> Renderer_text = gtk_cell_renderer_text_new();
>
> G_object_set (G_OBJECT (renderer_text),
>
>                                     "font", FONT,
>
>                                     "alignment", PANGO_ALIGN_CENTER,
>
>                                     NULL);
>
>
>
>
>
> But no matter what alignment I enter it's still on default.
>
>
>
> What am I doing wrong here?
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>



-- 
Tadej Borovšak
tadeboro gmail com
tadej borovsak gmail com


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