[Monodevelop-patches-list] r598 - in trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser: . BrowserNode

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Jan 20 14:20:07 EST 2004


Author: tberman
Date: 2004-01-20 14:20:07 -0500 (Tue, 20 Jan 2004)
New Revision: 598

Modified:
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs
   trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs
Log:
one step closer to tracking ShowExtensions properly


Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs	2004-01-20 07:33:45 UTC (rev 597)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/BrowserNode/FileNode.cs	2004-01-20 19:20:07 UTC (rev 598)
@@ -78,7 +78,7 @@
 			}
 			if (text != Text) {
 				Text = text;
-			}
+			}
 		}
 		
 		public override void UpdateNaming()

Modified: trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs	2004-01-20 07:33:45 UTC (rev 597)
+++ trunk/MonoDevelop/src/Main/Base/Gui/Pads/ProjectBrowser/ProjectBrowserView.cs	2004-01-20 19:20:07 UTC (rev 598)
@@ -73,12 +73,12 @@
 
 		public void RedrawContent()
 		{
-			BeginUpdate();
-			AbstractBrowserNode.ShowExtensions = propertyService.GetProperty("ICSharpCode.SharpDevelop.Gui.ProjectBrowser.ShowExtensions", true);
-			foreach (AbstractBrowserNode node in Nodes) {
-				node.UpdateNaming();
-			}
-			EndUpdate();
+			BeginUpdate();
+			AbstractBrowserNode.ShowExtensions = propertyService.GetProperty("ICSharpCode.SharpDevelop.Gui.ProjectBrowser.ShowExtensions", true);
+			foreach (AbstractBrowserNode node in Nodes) {
+				node.UpdateNaming();
+			}
+			EndUpdate();
 		}
 		
 		static ProjectBrowserView()
@@ -101,6 +101,7 @@
 
 			projectService.CombineOpened += new CombineEventHandler(OpenCombine);
 			projectService.CombineClosed += new CombineEventHandler(CloseCombine);
+			propertyService.PropertyChanged += new PropertyEventHandler (TrackPropertyChange);
 
 			//PlainFont = new Font(Font, FontStyle.Regular);
 			//boldFont  = new Font(Font, FontStyle.Bold);
@@ -115,7 +116,14 @@
 			RowActivated += new GtkSharp.RowActivatedHandler(OnNodeActivated);
 			contentPanel.ButtonReleaseEvent += new GtkSharp.ButtonReleaseEventHandler(OnButtonRelease);
 		}
-		
+		
+		void TrackPropertyChange (object o, ICSharpCode.Core.Properties.PropertyEventArgs e)
+		{
+			if (e.OldValue != e.NewValue && e.Key == "ICSharpCode.SharpDevelop.Gui.ProjectBrowser.ShowExtensions") {
+				RedrawContent ();
+			}
+		}
+		
 		public void RefreshTree(Combine combine)
 		{
 			DisposeProjectNodes();




More information about the Monodevelop-patches-list mailing list