[Gtk-sharp-list] TreeView problem 2: Pango.Alignment not working

TheSHEEEP thesheeep2 at web.de
Sat Mar 10 12:47:11 UTC 2012


And another TreeView problem:

I have a TreeView in which I use the following function to render text:

private void RenderEntryValue (Gtk.TreeViewColumn column, Gtk.CellRenderer
cell, Gtk.TreeModel model, Gtk.TreeIter iter)
{
		(cell as Gtk.CellRendererText).Markup = "" + someMarkupText;
		(cell as Gtk.CellRendererText).Alignment = Pango.Alignment.Center;
}

As you might have guessed from the Subject, this does not work. 
The text remains left-aligned. Any ideas how to make it work, other than
adding spaces to the left of it?

--
View this message in context: http://mono.1490590.n4.nabble.com/TreeView-problem-2-Pango-Alignment-not-working-tp4461978p4461978.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.


More information about the Gtk-sharp-list mailing list