[Fwd: Re: [evolution-patches] Patch for 49702 (Find window lacks errormessages)]




--- Begin Message ---
This one is fine hopefully :)


On Fri, 2004-04-16 at 11:30 -0400, Jeffrey Stedfast wrote:
> I don't need an X-Mailer header to tell me that you didn't use
> Evolution to send your message :-)
> 
> Jeff
> 
> On Fri, 2004-04-16 at 20:47 +0530, Pratik V. Parikh wrote: 
> > Jeffrey Stedfast wrote:
> > > Also, it would be nicer if you used Evolution to send these patches
> > > :-) 
> > 
> > What makes you think I haven't used it? ;)
> > 
? gtkhtml/autom4te.cache
Index: gtkhtml/components/html-editor/ChangeLog
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/ChangeLog,v
retrieving revision 1.453
diff -u -3 -p -u -r1.453 ChangeLog
--- gtkhtml/components/html-editor/ChangeLog	15 Apr 2004 14:51:00 -0000	1.453
+++ gtkhtml/components/html-editor/ChangeLog	16 Apr 2004 17:05:25 -0000
@@ -1,3 +1,10 @@
+2004-04-16  Pratik V. Parikh <pratikvp despammed com>
+
+	* search.c (search_dialog_response): Display information when
+	search string is not found.
+
+	Fixes #49702
+
 2004-04-15  Radek Doulik  <rodo ximian com>
 
 	* popup.c (prepare_properties_and_menu): keep table delete submenu
Index: gtkhtml/components/html-editor/search.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/search.c,v
retrieving revision 1.24
diff -u -3 -p -u -r1.24 search.c
--- gtkhtml/components/html-editor/search.c	12 Mar 2004 16:15:52 -0000	1.24
+++ gtkhtml/components/html-editor/search.c	16 Apr 2004 17:05:25 -0000
@@ -58,10 +58,14 @@ search_dialog_response (GtkDialog *dialo
 	switch (response_id) {
 	case 0: /* Search */
 		gtk_widget_hide (GTK_WIDGET (d->dialog));
-		html_engine_search (d->html->engine, gtk_entry_get_text (GTK_ENTRY (d->entry)),
-				    GTK_TOGGLE_BUTTON (d->case_sensitive)->active,
-				    GTK_TOGGLE_BUTTON (d->backward)->active == 0, d->cd->regular);
+		if (!html_engine_search(d->html->engine, gtk_entry_get_text (GTK_ENTRY (d->entry)),
+					GTK_TOGGLE_BUTTON (d->case_sensitive)->active,
+					GTK_TOGGLE_BUTTON (d->backward)->active == 0, d->cd->regular)) {
+			e_notice (NULL, GTK_MESSAGE_INFO, _("Search string '%s' not found"),
+				  gtk_entry_get_text (GTK_ENTRY (d->entry)));
+		}
 		break;
+
 	case GTK_RESPONSE_CLOSE:
 	case GTK_RESPONSE_CANCEL:
 		gtk_widget_grab_focus (GTK_WIDGET (d->cd->html));

--- End Message ---


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