[Monodevelop-patches-list] r2360 - trunk/MonoDevelop/Core/src/MonoDevelop.Dock
John Luke <jluke@cfl.rr.com>
jluke at mono-cvs.ximian.com
Tue Mar 15 21:13:50 EST 2005
Author: jluke
Date: 2005-03-15 21:13:50 -0500 (Tue, 15 Mar 2005)
New Revision: 2360
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBar.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBarButton.cs
Log:
simplify
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-03-16 01:34:39 UTC (rev 2359)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/ChangeLog 2005-03-16 02:13:50 UTC (rev 2360)
@@ -1,5 +1,11 @@
2005-03-15 John Luke <john.luke at gmail.com>
+ * DockBar.cs:
+ * DockBarButton.cs: simplify by just using the
+ Clicked signal
+
+2005-03-15 John Luke <john.luke at gmail.com>
+
* DockItemBehavior.cs: add NoGrip flag
* DockItem.cs:
* DockItemGrip.cs: hide/show the DockItemGrip based
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBar.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBar.cs 2005-03-16 01:34:39 UTC (rev 2359)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBar.cs 2005-03-16 02:13:50 UTC (rev 2360)
@@ -40,7 +40,7 @@
tooltips.SetTip (button, item.Name, item.Name);
item.DockBar = this;
item.DockBarButton = button;
- button.DockButtonClicked += OnDockButtonClicked;
+ button.Clicked += OnDockButtonClicked;
this.ShowAll ();
}
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBarButton.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBarButton.cs 2005-03-16 01:34:39 UTC (rev 2359)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Dock/DockBarButton.cs 2005-03-16 02:13:50 UTC (rev 2360)
@@ -7,28 +7,16 @@
{
DockItem item;
- public event EventHandler DockButtonClicked;
-
public DockBarButton (DockItem item)
{
this.item = item;
this.Relief = ReliefStyle.None;
- Image image = new Image (item.StockId, IconSize.SmallToolbar);
- this.Add (image);
- this.Clicked += OnClicked;
+ this.Add (new Image (item.StockId, IconSize.SmallToolbar));
}
public DockItem DockItem {
- get {
- return item;
- }
+ get { return item; }
}
-
- private void OnClicked (object sender, EventArgs args)
- {
- if (DockButtonClicked != null)
- DockButtonClicked (this, EventArgs.Empty);
- }
}
}
More information about the Monodevelop-patches-list
mailing list