[Monodevelop-patches-list] r687 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Jan 27 17:38:52 EST 2004


Author: benm
Date: 2004-01-27 17:38:51 -0500 (Tue, 27 Jan 2004)
New Revision: 687

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
more status bar

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 22:17:25 UTC (rev 686)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 22:38:51 UTC (rev 687)
@@ -86,6 +86,9 @@
 			se.Buffer.ModifiedChanged += new EventHandler (OnModifiedChanged);
 			se.Buffer.MarkSet += new MarkSetHandler (OnMarkSet);
 			se.Buffer.Changed += new EventHandler (OnChanged);
+			se.View.ToggleOverwrite += new EventHandler (CaretModeChanged);
+			
+			CaretModeChanged (null, null);
 		}
 		
 		public override void RedrawContent()
@@ -206,6 +209,13 @@
 			// to print.
 			statusBarService.SetCaretPosition (col - 1, iter.Line, chr - 1);
 		}
+		
+		// This is false because we at first `toggle' it to set it to true
+		bool insert_mode = false; // TODO: is this always the default
+		void CaretModeChanged (object sender, EventArgs e)
+		{
+			statusBarService.SetInsertMode (insert_mode = ! insert_mode);
+		}
 #endregion
 
 	}




More information about the Monodevelop-patches-list mailing list