[PATCH + Q] : search dialog



	Hi all,
here is a small patch to convert the search dialog to use the new 
balsa_information API.
There is still the same problem though : for simplicity reason the search 
dialog is modal, so when there is an error in the search request (eg you 
have not type in the string to look for), the error messages pops up but 
you can't validate, the error dialog box has not the focus, because the 
search dialog still has it.
How to avoid this kind of thing : avoid modal boxes or couldn't we give 
the focus to the error dialog box?
Bye
Manu
--- /home/manu/prog/balsa-cvs/balsa/src/find-search.c	Sun Jun 23 10:32:53 2002
+++ balsa-current/src/find-search.c	Wed Aug 21 14:09:39 2002
@@ -28,6 +28,7 @@
 #include "filter.h"
 #include "filter-funcs.h"
 #include "balsa-index.h"
+#include "information-dialog.h"
 #include "find-search.h"
 
 static GtkToggleButton*
@@ -186,14 +187,14 @@
 	    if (gtk_toggle_button_get_active(matching_cc))
 		CONDITION_SETMATCH(cnd,CONDITION_MATCH_CC);
 	    if (cnd->match_fields==CONDITION_EMPTY) {
-		libbalsa_information(LIBBALSA_INFORMATION_ERROR,
-                                     _("You must specify at least one field to search"));
+		balsa_information(LIBBALSA_INFORMATION_ERROR, GTK_WINDOW(dia),
+				  _("You must specify at least one field to search"));
 		res=-1;
 		continue;
 	    }
 	    else if (!gtk_entry_get_text(GTK_ENTRY(search_entry))[0]) {
-		libbalsa_information(LIBBALSA_INFORMATION_ERROR,
-                                     _("You must provide a non-empty string"));
+		balsa_information(LIBBALSA_INFORMATION_ERROR, GTK_WINDOW(dia),
+				  _("You must provide a non-empty string"));
 		res=-1;
 		continue;
 	    }


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