1

Hello I am using GTK3 CellRenderers in my project, but I want to put text within that at Center, how will I do that?

1 Answer 1

0

I guess you're using a GtkCellrendererText here. If so, you just got to set the alignment property to center. Example vala code:

my_cellrenderertext.alignment = Pango.Alignment.CENTER;
1
  • I tried, but it was not working....
    – gau1991
    Jun 23, 2012 at 8:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .