[Gtk-sharp-list] Gtk.CellRendererText.Markup
innominate
natenate at gmail.com
Sun Aug 24 03:12:49 EDT 2008
Ive figured it out. I was doing it wrong.
For those who come after me:
The file attached will work with some small changes
1 delete nameCell.Markup line
2 change mainColumn.AddAttribute (nameCell, "text", 2); to
mainColumn.AddAttribute (nameCell, "markup", 2);
3 add the markup to list.AppendValues (true, iconPixBuf, "blabla\nline two
bla bla bla...");
innominate wrote:
>
> Nope that did'nt seem to make any difference in fact nothing I try there
> seems to make any difference.
> I attached the file just to make sure im not doing anything stupid.
> http://www.nabble.com/file/p19128192/Preferences.cs Preferences.cs
>
>
>
>
> Michael Hutchinson wrote:
>>
>> On Sun, Aug 24, 2008 at 12:45 AM, innominate <natenate at gmail.com> wrote:
>>>
>>> Can anyone tell me more about this property? The documentation is very
>>> lacking.
>>
>> It's Pango Markup, similar to a tiny subset of HTML:
>> http://library.gnome.org/devel/pango/unstable/PangoMarkupFormat.html
>>
>> The GLib.Markup.EscapeText method is useful for escaping strings that
>> contain <, & characters etc you want to use within a markup string.
>>
>>> What I am trying to make my TreeView look the one in the image.
>>> (Gedit->Preferences->Plugins if that image upload doesnt work)
>>
>> I imagine Markup = "Title\nSubtitle"; would give you that effect.
>>
>>
>>
>> --
>> Michael Hutchinson
>> http://mjhutchinson.com
>> _______________________________________________
>> Gtk-sharp-list maillist - Gtk-sharp-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Gtk.CellRendererText.Markup-tp19127760p19128283.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.
More information about the Gtk-sharp-list
mailing list