From c87558b52689ae77d0e32714c349c3d326b7e337 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 20 Dec 2004 19:47:40 +0000 Subject: [PATCH] * sample/GtkDemo/DemoStockBrowser.cs: update this to work with that. (It used to crash.) svn path=/trunk/gtk-sharp/; revision=37996 --- ChangeLog | 3 +++ sample/GtkDemo/DemoStockBrowser.cs | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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;