tomboy r1809 - in trunk: . Tomboy help help/C



Author: sharm
Date: Mon Jan 28 07:34:10 2008
New Revision: 1809
URL: http://svn.gnome.org/viewvc/tomboy?rev=1809&view=rev

Log:
* help/C/tomboy.xml: Removed reference to NoteFindBar case-sensitivity
  from help.
* Tomboy/NoteWindow.cs: Removed case-sensitivity option from
  NoteFindBar.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/NoteWindow.cs
   trunk/help/C/tomboy.xml
   trunk/help/ChangeLog

Modified: trunk/Tomboy/NoteWindow.cs
==============================================================================
--- trunk/Tomboy/NoteWindow.cs	(original)
+++ trunk/Tomboy/NoteWindow.cs	Mon Jan 28 07:34:10 2008
@@ -707,7 +707,6 @@
 		Gtk.Entry entry;
 		Gtk.Button next_button;
 		Gtk.Button prev_button;
-		Gtk.CheckButton case_sensitive;
 
 		ArrayList current_matches;
 		string prev_search_text;
@@ -759,12 +758,6 @@
 			next_button.Show ();
 			PackStart (next_button, false, false, 0);
 
-			case_sensitive = new Gtk.CheckButton (
-			        Catalog.GetString ("Case _sensitive"));
-			case_sensitive.Toggled += OnCaseSensitiveToggled;
-			case_sensitive.Show ();
-			PackStart (case_sensitive, true, true, 0);
-
 			// Bind ESC to close the FindBar if it's open and has
 			// focus or the window otherwise.  Also bind Return and
 			// Shift+Return to advance the search if the search
@@ -864,11 +857,6 @@
 			editor.ScrollMarkOnscreen (buffer.InsertMark);
 		}
 
-		void OnCaseSensitiveToggled (object sender, EventArgs args)
-		{
-			PerformSearch (true);
-		}
-
 		void OnFindEntryActivated (object sender, EventArgs args)
 		{
 			if (entry_changed_timeout != null) {
@@ -918,15 +906,12 @@
 			if (text == null)
 				return;
 
-			if (!case_sensitive.Active)
-				text = text.ToLower ();
+			text = text.ToLower ();
 
 			string [] words = text.Split (' ', '\t', '\n');
 
 			current_matches =
-			        FindMatchesInBuffer (note.Buffer,
-			                             words,
-			                             case_sensitive.Active);
+			        FindMatchesInBuffer (note.Buffer, words);
 
 			prev_search_text = SearchText;
 
@@ -1105,15 +1090,14 @@
 			UpdateSensitivity ();
 		}
 
-		ArrayList FindMatchesInBuffer (NoteBuffer buffer, string [] words, bool match_case)
+		ArrayList FindMatchesInBuffer (NoteBuffer buffer, string [] words)
 		{
 			ArrayList matches = new ArrayList ();
 
 			string note_text = buffer.GetSlice (buffer.StartIter,
 			                                    buffer.EndIter,
 			                                    false /* hidden_chars */);
-			if (!match_case)
-				note_text = note_text.ToLower ();
+			note_text = note_text.ToLower ();
 
 			foreach (string word in words) {
 				int idx = 0;

Modified: trunk/help/C/tomboy.xml
==============================================================================
--- trunk/help/C/tomboy.xml	(original)
+++ trunk/help/C/tomboy.xml	Mon Jan 28 07:34:10 2008
@@ -630,10 +630,6 @@
           	<guibutton>Previous</guibutton> to move to the previous
           	match.</para>
           	
-          	<para>Use the <guibutton>Case sensitive</guibutton> checkbox to
-          	limit the matches to ones that match the case of the search string
-          	exactly.</para>
-          	
           	<para>To close the find bar, click <guibutton>X</guibutton> (Close
           	Button) on the far left or press the <keycap>Escape</keycap>
           	key.</para>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]