[Monodevelop-patches-list] r879 - in trunk/MonoDevelop/src: Libraries/MonoDevelop.Gui.Widgets/IconView Main/Base/Gui/Dialogs
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Feb 13 15:23:38 EST 2004
Author: benm
Date: 2004-02-13 15:23:38 -0500 (Fri, 13 Feb 2004)
New Revision: 879
Modified:
trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/IconView/IconView.cs
trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs
Log:
fix
Modified: trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/IconView/IconView.cs
===================================================================
--- trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/IconView/IconView.cs 2004-02-13 20:04:47 UTC (rev 878)
+++ trunk/MonoDevelop/src/Libraries/MonoDevelop.Gui.Widgets/IconView/IconView.cs 2004-02-13 20:23:38 UTC (rev 879)
@@ -33,6 +33,12 @@
userData.Add (itm, obj);
}
+ public void AddIcon (string stock, Gtk.IconSize sz, string name, object obj)
+ {
+ int itm = iconList.AppendPixbuf (iconList.RenderIcon (stock, sz, ""), "/dev/null", name);
+ userData.Add (itm, obj);
+ }
+
void HandleKeyPressed (object o, KeyPressEventArgs args)
{
if (CurrentlySelected == null)
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs 2004-02-13 20:04:47 UTC (rev 878)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Dialogs/NewProjectDialog.cs 2004-02-13 20:23:38 UTC (rev 879)
@@ -129,7 +129,7 @@
if (lst_template_types.Selection.GetSelected (out mdl, out iter)) {
TemplateView.Clear ();
foreach (TemplateItem item in ((Category)catStore.GetValue (iter, 1)).Templates) {
- TemplateView.AddIcon (new Gtk.Image (item.Template.Icon, Gtk.IconSize.Button), item.Name, item.Template);
+ TemplateView.AddIcon (ResourceService.GetStockId (item.Template.Icon), Gtk.IconSize.Button, item.Name, item.Template);
}
btn_new.Sensitive = false;
More information about the Monodevelop-patches-list
mailing list