Author: lluis
Date: 2006-01-13 12:55:48 -0500 (Fri, 13 Jan 2006)
New Revision: 55529
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/TabLabel.cs
Log:
2006-01-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Components/TabLabel.cs: Added support for tooltips.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog 2006-01-13
17:54:58 UTC (rev 55528)
+++ trunk/monodevelop/Core/src/MonoDevelop.Components/ChangeLog 2006-01-13
17:55:48 UTC (rev 55529)
@@ -1,3 +1,7 @@
+2006-01-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Components/TabLabel.cs: Added support for tooltips.
+
2006-01-10 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* Makefile.am:
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/TabLabel.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/TabLabel.cs
2006-01-13 17:54:58 UTC (rev 55528)
+++
trunk/monodevelop/Core/src/MonoDevelop.Components/MonoDevelop.Components/TabLabel.cs
2006-01-13 17:55:48 UTC (rev 55529)
@@ -15,6 +15,8 @@
private Label title;
private Gtk.Image icon;
private Button btn;
+ private EventBox titleBox;
+ Tooltips tips;
protected TabLabel (IntPtr p): base (p)
{
@@ -22,11 +24,13 @@
public TabLabel (Label label, Gtk.Image icon) : base (false, 2)
{
+ this.titleBox = new EventBox ();
this.icon = icon;
this.PackStart (icon, false, true, 2);
title = label;
- this.PackStart (title, true, true, 0);
+ titleBox.Add (title);
+ this.PackStart (titleBox, true, true, 0);
btn = new Button ();
btn.Add (new Gtk.Image (GetType().Assembly,
"MonoDevelop.Close.png"));
@@ -54,5 +58,11 @@
{
get { return btn; }
}
+
+ public void SetTooltip (string tip, string desc)
+ {
+ if (tips == null) tips = new Tooltips ();
+ tips.SetTip (titleBox, tip, desc);
+ }
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches