[Monodevelop-patches-list] r609 - trunk/MonoDevelop/src/Main/Base/Services/Toolbar

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Jan 20 23:06:34 EST 2004


Author: tberman
Date: 2004-01-20 23:06:34 -0500 (Tue, 20 Jan 2004)
New Revision: 609

Modified:
   trunk/MonoDevelop/src/Main/Base/Services/Toolbar/ToolbarService.cs
Log:
stockify the toolbars


Modified: trunk/MonoDevelop/src/Main/Base/Services/Toolbar/ToolbarService.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Services/Toolbar/ToolbarService.cs	2004-01-21 04:03:47 UTC (rev 608)
+++ trunk/MonoDevelop/src/Main/Base/Services/Toolbar/ToolbarService.cs	2004-01-21 04:06:34 UTC (rev 609)
@@ -61,8 +61,13 @@
 						continue;
 					} else {
 						item = new SdToolbarCommand(childCodon.Conditions, owner, childCodon.ToolTip);
-						Gdk.Pixbuf pb = resourceService.GetBitmap(childCodon.Icon);
-						item.Pixbuf = pb;
+						Gtk.Image img = resourceService.GetImage(childCodon.Icon, Gtk.IconSize.Menu);
+						if (img.StorageType == Gtk.ImageType.Stock) {
+							item.Stock = img.Stock;
+							item.IconSize = (int)Gtk.IconSize.Menu;
+						} else {
+							item.Pixbuf = img.Pixbuf;
+						}
 						item.ShowAll();
 					}
 				} else {




More information about the Monodevelop-patches-list mailing list