Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.