[Monodevelop-patches-list] r1552 - in trunk/MonoDevelop/src/Main/Base: . Gui/Pads/HelpBrowser
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Apr 30 00:22:07 EDT 2004
Author: tberman
Date: 2004-04-30 00:22:07 -0400 (Fri, 30 Apr 2004)
New Revision: 1552
Modified:
trunk/MonoDevelop/src/Main/Base/ChangeLog
trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/MonodocTreePad.cs
Log:
ugly hack to fix uglyness.
now we dont show doc nodes with no docs.
Modified: trunk/MonoDevelop/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-04-29 22:41:18 UTC (rev 1551)
+++ trunk/MonoDevelop/src/Main/Base/ChangeLog 2004-04-30 04:22:07 UTC (rev 1552)
@@ -1,3 +1,9 @@
+2004-04-30 Todd Berman <tberman at sevenl.net>
+
+ * Gui/Pads/HelpBrowser/MonodocTreePad.cs: Hide doc nodes without
+ any docs. This is an ugly ugly solution, but it works. Feel free
+ to replace it with something better that looks nice.
+
2004-04-29 Todd Berman <tberman at sevenl.net>
* Services/ParserService/DefaultParserService.cs: commenting out
Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/MonodocTreePad.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/MonodocTreePad.cs 2004-04-29 22:41:18 UTC (rev 1551)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/HelpBrowser/MonodocTreePad.cs 2004-04-30 04:22:07 UTC (rev 1552)
@@ -33,9 +33,9 @@
tree_view = new TreeView ();
tree_view.AppendColumn ("name_col", new CellRendererText (), "text", 0);
- tree_view.RowExpanded += new Gtk.RowExpandedHandler (RowExpanded);
- tree_view.Selection.Changed += new EventHandler (RowActivated);
-
+ tree_view.RowExpanded += new Gtk.RowExpandedHandler (RowExpanded);
+ tree_view.Selection.Changed += new EventHandler (RowActivated);
+
store = new TreeStore (typeof (string), typeof (Node));
root_iter = store.AppendValues (GettextCatalog.GetString ("Mono Documentation"), mds.HelpTree);
@@ -49,6 +49,16 @@
scroller.Add (tree_view);
tree_view.ExpandRow (new TreePath ("0"), false);
+ TreeIter child_iter;
+ ArrayList itersToDrop = new ArrayList ();
+ start:
+ store.IterChildren (out child_iter, root_iter);
+ do {
+ if (!store.IterHasChild (child_iter)) {
+ store.Remove (ref child_iter);
+ goto start;
+ }
+ } while (store.IterNext (out child_iter));
}
Hashtable populated = new Hashtable ();
More information about the Monodevelop-patches-list
mailing list