[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:
Родитель
c716fb5866
Коммит
e078969d64
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче