[Monodevelop-patches-list] r1955 - in trunk/MonoDevelop/Core/src: Libraries/MonoDevelop.Gui.Widgets Libraries/MonoDevelop.Gui.Widgets/Tree Main/Base/Gui/Pads/HelpBrowser
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Sep 19 22:33:43 EDT 2004
Author: tberman
Date: 2004-09-19 22:33:43 -0400 (Sun, 19 Sep 2004)
New Revision: 1955
Modified:
trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/ChangeLog
trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs
trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
Log:
patch from fer to make double click expand nodes.
Modified: trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/ChangeLog 2004-09-19 02:33:17 UTC (rev 1954)
+++ trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/ChangeLog 2004-09-20 02:33:43 UTC (rev 1955)
@@ -1,3 +1,7 @@
+2004-09-19 Fernando Herrera <fherrera at onirica.com>
+
+ * Tree/TreeView.cs: Double click expands node.
+
2004-08-07 Todd Berman <tberman at off.net>
* AssemblyInfo.cs.in: Use new ASSEMBLY_VERSION variable.
Modified: trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs 2004-09-19 02:33:17 UTC (rev 1954)
+++ trunk/MonoDevelop/Core/src/Libraries/MonoDevelop.Gui.Widgets/Tree/TreeView.cs 2004-09-20 02:33:43 UTC (rev 1955)
@@ -57,6 +57,7 @@
nodes.NodeRemoved += new NodeRemovedHandler (OnNodeRemoved);
TestExpandRow += new Gtk.TestExpandRowHandler (OnTestExpandRow);
+ RowActivated += new Gtk.RowActivatedHandler (OnRowClicked);
}
public TreeView (bool edit, Gtk.TreeIterCompareFunc cb_compare) : this (edit)
@@ -256,6 +257,17 @@
args.RetVal = (e.Cancel == true || node.Nodes.Count == 0);
}
+
+ private void OnRowClicked (object sender, Gtk.RowActivatedArgs args)
+ {
+ Gtk.TreePath path = args.Path;
+
+ if (!this.GetRowExpanded (path)) {
+ this.ExpandRow (path, false);
+ } else {
+ this.CollapseRow (path);
+ }
+ }
protected virtual void OnBeforeExpand (TreeViewCancelEventArgs e)
{
Modified: trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-09-19 02:33:17 UTC (rev 1954)
+++ trunk/MonoDevelop/Core/src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs 2004-09-20 02:33:43 UTC (rev 1955)
@@ -75,10 +75,10 @@
public void LoadUrl (string url)
{
if (url.StartsWith("#"))
- {
- html_viewer.JumpToAnchor(url.Substring(1));
- return;
- }
+ {
+ html_viewer.JumpToAnchor(url.Substring(1));
+ return;
+ }
Node node;
More information about the Monodevelop-patches-list
mailing list