[Gtk] Correctly load stock icons

This is the only way we get a working stock icon. I'm not sure if
SetFromIconName is supposed to work in this scenario, but it does
not.
This commit is contained in:
Alan McGovern 2012-10-09 22:00:58 +01:00
Родитель c716fb5866
Коммит e078969d64
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -102,9 +102,7 @@ namespace Xwt.GtkBackend
secondaryText = message.SecondaryText;
}
image.Stock = message.Icon;
image.SetFromIconName (Util.ToGtkStock (message.Icon), Gtk.IconSize.Dialog);
// image.Pixbuf = ImageService.GetPixbuf (message.Icon, IconSize.Dialog);
image.SetFromStock (Util.ToGtkStock (message.Icon), Gtk.IconSize.Dialog);
StringBuilder markup = new StringBuilder (@"<span weight=""bold"" size=""larger"">");
markup.Append (GLib.Markup.EscapeText (primaryText));