diff --git a/ChangeLog b/ChangeLog index 0f61569c2..5b3fc4445 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ ConstStockItem struct so the p/invoke layer won't try to free static strings. [#70589] + * sample/GtkDemo/DemoStockBrowser.cs: update this to work with + that. (It used to crash.) + 2004-12-20 Mike Kestner * generator/Property.cs : generate Interface properties. diff --git a/sample/GtkDemo/DemoStockBrowser.cs b/sample/GtkDemo/DemoStockBrowser.cs index 6232da4c5..d725fc019 100644 --- a/sample/GtkDemo/DemoStockBrowser.cs +++ b/sample/GtkDemo/DemoStockBrowser.cs @@ -115,8 +115,9 @@ namespace GtkDemo foreach (string s in stock_ids) { - Gtk.StockItem si = new StockItem (); - if (Gtk.StockManager.Lookup (s, ref si)) { + Gtk.StockItem si; + si = Gtk.Stock.Lookup (s); + if (si.StockId != null) { Gdk.Pixbuf icon = this.RenderIcon (s, IconSize.Menu, ""); StockInfo info = new StockInfo (); info.Icon = icon;