[evolution/webkit-composer] Don't display 'Loose formating?' dialog on startup



commit 0ab3f890fba3c761a238fe96a1577db1a45465fb
Author: Dan VrÃtil <dvratil redhat com>
Date:   Sun Nov 4 19:57:11 2012 +0100

    Don't display 'Loose formating?' dialog on startup

 widgets/editor/e-editor-actions.c |    1 -
 widgets/editor/e-editor-widget.c  |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/widgets/editor/e-editor-actions.c b/widgets/editor/e-editor-actions.c
index e306c99..8e1fc75 100644
--- a/widgets/editor/e-editor-actions.c
+++ b/widgets/editor/e-editor-actions.c
@@ -652,7 +652,6 @@ action_mode_cb (GtkRadioAction *action,
 
 	editor_widget = e_editor_get_editor_widget (editor);
 	is_html = e_editor_widget_get_html_mode (editor_widget);
-	printf("action_mode_cb: is_html = %d\n", is_html);
 
 	/* This must be done from idle callback, because apparently we can change
 	 * current value in callback of current value change */
diff --git a/widgets/editor/e-editor-widget.c b/widgets/editor/e-editor-widget.c
index 7377297..680e3a7 100644
--- a/widgets/editor/e-editor-widget.c
+++ b/widgets/editor/e-editor-widget.c
@@ -956,7 +956,7 @@ e_editor_widget_set_html_mode (EEditorWidget *widget,
 	g_return_if_fail (E_IS_EDITOR_WIDGET (widget));
 
 	/* If toggling from HTML to plain text mode, ask user first */
-	if (widget->priv->html_mode && !html_mode) {
+	if (widget->priv->html_mode && !html_mode && widget->priv->changed) {
 		GtkWidget *parent, *dialog;
 
 		parent = gtk_widget_get_toplevel (GTK_WIDGET (widget));



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