[evolution-patches] 62856, all, asking passwords in offline mode




this is a fairly clean but sort of dirty workaround for asking passwords in offline mode.  it assumes if the calendar or addressbook is asking for a password then it must be a remote resource.  mail doesn't need it as it does the right thing already, and smime should only be local resources.  gpg w/ remote keyservers is another issue, i don't know what happens right now or if we can really do anything about it anyway.

If the app is offline, we just return that the user has cancelled the password request, it is up to the backend as to what it does with no auth.  some annoying popup boxes may be likely from the addressbook at least (the mailer explicitly surpresses any followon error boxes after user expliclty cancels something).

this works since everything is in-proc now.

--
Michael Zucchi <notzed ximian com>
"born to die, live to work, it's all downhill from here"
Novell's Evolution and Free Software Developer
? 55303-2.patch
? 55303.patch
? 62377.patch
? 62771-mailer.patch
? 62812.patch
? camel-gpg.0.verify.data
? camel-gpg.0.verify.signature
? camel-gpg.1.verify.data
? camel-gpg.1.verify.signature
? camel-gpg.2.verify.data
? camel-gpg.2.verify.signature
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3433
diff -u -r1.3433 ChangeLog
--- ChangeLog	12 Aug 2004 20:40:11 -0000	1.3433
+++ ChangeLog	13 Aug 2004 17:49:08 -0000
@@ -1,3 +1,11 @@
+2004-08-13  Jeffrey Stedfast  <fejj novell com>
+
+	Fix for bug #62812
+
+	* em-format-html-display.c (em_format_html_display_search): Set
+	the search_dialog to be transient for the parent window and make
+	sure to destroy the search_dialog when the parent gets destroyed.
+
 2004-08-12  Carlos Garnacho Parro  <carlosg gnome org>
 
 	* em-utils.c: Optionally use GtkFileChooser if compiled against
Index: em-format-html-display.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-format-html-display.c,v
retrieving revision 1.49
diff -u -r1.49 em-format-html-display.c
--- em-format-html-display.c	6 Aug 2004 17:36:01 -0000	1.49
+++ em-format-html-display.c	13 Aug 2004 17:49:08 -0000
@@ -242,7 +242,7 @@
 	html_engine_set_tokenizer(efh->html->engine, (HTMLTokenizer *)efhd->search_tok);
 
 	g_signal_connect(efh->html, "realize", G_CALLBACK(efhd_gtkhtml_realise), o);
-
+	
 	/* we want to convert url's etc */
 	efh->text_html_flags |= CAMEL_MIME_FILTER_TOHTML_CONVERT_URLS | CAMEL_MIME_FILTER_TOHTML_CONVERT_ADDRESSES;
 #undef efh
@@ -517,6 +517,8 @@
 	p->search_wrap = FALSE;
 
 	gtk_dialog_set_default_response((GtkDialog *)p->search_dialog, GTK_RESPONSE_ACCEPT);
+	e_dialog_set_transient_for ((GtkWindow *) p->search_dialog, (GtkWidget *) ((EMFormatHTML *) efhd)->html);
+	gtk_window_set_destroy_with_parent ((GtkWindow *) p->search_dialog, TRUE);
 	efhd_update_matches(efhd);
 
 	g_signal_connect(p->search_entry, "activate", G_CALLBACK(efhd_search_entry_activate), efhd);


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