[evolution/gnome-3-22] Add a Confirmation option 'prompt-on-composer-mode-switch' into Preferences
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-22] Add a Confirmation option 'prompt-on-composer-mode-switch' into Preferences
- Date: Tue, 6 Dec 2016 16:30:11 +0000 (UTC)
commit 5b026c8e75714b6ee7cee7c5d4334974d3247abd
Author: Milan Crha <mcrha redhat com>
Date: Tue Dec 6 17:21:38 2016 +0100
Add a Confirmation option 'prompt-on-composer-mode-switch' into Preferences
mail/mail-config.ui | 16 ++++++++++++++++
modules/mail/em-composer-prefs.c | 6 ++++++
2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/mail/mail-config.ui b/mail/mail-config.ui
index 56f108d..7a54ec1 100644
--- a/mail/mail-config.ui
+++ b/mail/mail-config.ui
@@ -1122,6 +1122,22 @@
<property name="position">7</property>
</packing>
</child>
+ <child>
+ <object class="GtkCheckButton" id="chkPromptComposerModeSwitch">
+ <property name="label" translatable="yes">Before composer mo_de changes from HTML to
Plain Text</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0.5</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">8</property>
+ </packing>
+ </child>
</object>
</child>
</object>
diff --git a/modules/mail/em-composer-prefs.c b/modules/mail/em-composer-prefs.c
index ecdcf40..0bc6385 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -1156,6 +1156,12 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
widget, "active",
G_SETTINGS_BIND_DEFAULT);
+ widget = e_builder_get_widget (prefs->builder, "chkPromptComposerModeSwitch");
+ g_settings_bind (
+ settings, "prompt-on-composer-mode-switch",
+ widget, "active",
+ G_SETTINGS_BIND_DEFAULT);
+
widget = e_builder_get_widget (prefs->builder, "chkAutoSmileys");
g_settings_bind (
settings, "composer-magic-smileys",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]