mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-23 13:11:04 +00:00
* sample/GtkDemo/DemoStockBrowser.cs: update this to work with
that. (It used to crash.) svn path=/trunk/gtk-sharp/; revision=37996
This commit is contained in:
parent
86d4828d5d
commit
c87558b526
|
@ -8,6 +8,9 @@
|
||||||
ConstStockItem struct so the p/invoke layer won't try to free
|
ConstStockItem struct so the p/invoke layer won't try to free
|
||||||
static strings. [#70589]
|
static strings. [#70589]
|
||||||
|
|
||||||
|
* sample/GtkDemo/DemoStockBrowser.cs: update this to work with
|
||||||
|
that. (It used to crash.)
|
||||||
|
|
||||||
2004-12-20 Mike Kestner <mkestner@novell.com>
|
2004-12-20 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* generator/Property.cs : generate Interface properties.
|
* generator/Property.cs : generate Interface properties.
|
||||||
|
|
|
@ -115,8 +115,9 @@ namespace GtkDemo
|
||||||
|
|
||||||
foreach (string s in stock_ids)
|
foreach (string s in stock_ids)
|
||||||
{
|
{
|
||||||
Gtk.StockItem si = new StockItem ();
|
Gtk.StockItem si;
|
||||||
if (Gtk.StockManager.Lookup (s, ref si)) {
|
si = Gtk.Stock.Lookup (s);
|
||||||
|
if (si.StockId != null) {
|
||||||
Gdk.Pixbuf icon = this.RenderIcon (s, IconSize.Menu, "");
|
Gdk.Pixbuf icon = this.RenderIcon (s, IconSize.Menu, "");
|
||||||
StockInfo info = new StockInfo ();
|
StockInfo info = new StockInfo ();
|
||||||
info.Icon = icon;
|
info.Icon = icon;
|
||||||
|
|
Loading…
Reference in a new issue