Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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;
share|improve this answer
    
I tried, but it was not working.... –  gau1991 Jun 23 '12 at 8:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.