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



commit 8bae6c6da4ad5c9167b4c2cb32d0a21e49d96348
Author: Dan Vrátil <dvratil redhat com>
Date:   Sun Nov 4 19:57:11 2012 +0100

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

 e-util/e-editor-actions.c |    1 -
 e-util/e-editor-widget.c  |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor-actions.c b/e-util/e-editor-actions.c
index 3767909..f58f938 100644
--- a/e-util/e-editor-actions.c
+++ b/e-util/e-editor-actions.c
@@ -651,7 +651,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/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 7377297..680e3a7 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/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]