[Gtk-sharp-list] Bug in MessageDialog

Jesus Eguiluz jeguiluz at andeselec.com
Tue Apr 28 14:02:31 UTC 2015


This is because the MessageDialog widget uses pango markup by default 
(https://developer.gnome.org/pango/stable/PangoMarkupFormat.html) so in 
your example the "&" is used for special characters and try to parse it.

So if you not wan't use pango markup create the messagedialog with this 
contructor.

var md = new MessageDialog(null, DialogFlags.Modal, MessageType.Info, 
ButtonsType.Ok, false, msg);

Regards

Jesus Eguiluz
Ingeniero Electrónico.
Investigación y Desarrollo
Andes Electrónica Ltda.
www.andeselec.com

El 28/04/15 a las 08:28, Edward Ned Harvey (mono) escibió:
> string msg = "Hello & there";
> 	var md = new MessageDialog(null, DialogFlags.Modal, MessageType.Info, ButtonsType.Ok, msg);
> 	md.Run();
> 	md.Destroy();



More information about the Gtk-sharp-list mailing list