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


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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