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

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 26 22:42:06 EST 2004


Author: benm
Date: 2004-01-26 22:42:05 -0500 (Mon, 26 Jan 2004)
New Revision: 673

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
Log:
get select all working

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 03:22:26 UTC (rev 672)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorDisplayBinding.cs	2004-01-27 03:42:05 UTC (rev 673)
@@ -200,6 +200,17 @@
 		
 		public void SelectAll (object sender, EventArgs e)
 		{
+			// Sadly, this is not in our version of the bindings:
+			//
+			//gtk_text_view_select_all (GtkWidget *widget,
+			//			  gboolean select)
+			//{
+			//	gtk_text_buffer_get_bounds (buffer, &start_iter, &end_iter);
+			//	gtk_text_buffer_move_mark_by_name (buffer, "insert", &start_iter);
+			//	gtk_text_buffer_move_mark_by_name (buffer, "selection_bound", &end_iter);
+			
+			se.buffer.MoveMark ("insert", se.buffer.StartIter);
+			se.buffer.MoveMark ("selection_bound", se.buffer.EndIter);
 		}
 		
 		Gtk.Clipboard clipboard = Gtk.Clipboard.Get (Gdk.Atom.Intern("CLIPBOARD", false));




More information about the Monodevelop-patches-list mailing list