aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-01-02 20:23:07 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-01-02 20:23:07 +0800
commit89908f675cfc9a7c83d69f729bf4d4e57cd5a41a (patch)
tree12cd79ba0be9b146ab71c87985139f8b01d6299f /mail
parent0d0fe5eae4c87c2bfcdd9ea0aa488e2f32c7ed17 (diff)
downloadgsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar.gz
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar.bz2
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar.lz
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar.xz
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.tar.zst
gsoc2013-evolution-89908f675cfc9a7c83d69f729bf4d4e57cd5a41a.zip
** Fix for bug #364642
2008-01-02 Milan Crha <mcrha@redhat.com> ** Fix for bug #364642 * mail/em-composer-prefs.h: (struct _EMComposerPrefs): * mail/em-composer-prefs.c: (em_composer_prefs_construct): * mail/mail-config.glade: * mail/evolution-mail.schemas.in: (/apps/evolution/mail/composer/request_receipt): New option in Composer tab to preset Request Read Receipt in composer. * composer/e-msg-composer.c: (create_composer): Preset "Request Read Receipt" based on gconf key "/apps/evolution/mail/composer/request_receipt". svn path=/trunk/; revision=34749
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog11
-rw-r--r--mail/em-composer-prefs.c4
-rw-r--r--mail/em-composer-prefs.h1
-rw-r--r--mail/evolution-mail.schemas.in14
-rw-r--r--mail/mail-config.glade19
5 files changed, 49 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index feb7084a65..904c9edead 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,14 @@
+2008-01-02 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #364642
+
+ * em-composer-prefs.h: (struct _EMComposerPrefs):
+ * em-composer-prefs.c: (em_composer_prefs_construct):
+ * mail-config.glade:
+ * evolution-mail.schemas.in:
+ (/apps/evolution/mail/composer/request_receipt):
+ New option in Composer tab to preset Request Read Receipt in composer.
+
2008-01-02 Andre Klapper <a9016009@gmx.de>
* mail-config.glade:
diff --git a/mail/em-composer-prefs.c b/mail/em-composer-prefs.c
index 4839e4e1f6..11857c14ba 100644
--- a/mail/em-composer-prefs.c
+++ b/mail/em-composer-prefs.c
@@ -918,6 +918,10 @@ em_composer_prefs_construct (EMComposerPrefs *prefs)
toggle_button_init (prefs, prefs->auto_smileys, FALSE,
"/apps/evolution/mail/composer/magic_smileys");
+ prefs->auto_request_receipt = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkRequestReceipt"));
+ toggle_button_init (prefs, prefs->auto_request_receipt, FALSE,
+ "/apps/evolution/mail/composer/request_receipt");
+
prefs->top_signature = GTK_TOGGLE_BUTTON (glade_xml_get_widget (gui, "chkTopSignature"));
toggle_button_init (prefs, prefs->top_signature, FALSE,
"/apps/evolution/mail/composer/top_signature");
diff --git a/mail/em-composer-prefs.h b/mail/em-composer-prefs.h
index 9a34dcda0a..47e4a95e10 100644
--- a/mail/em-composer-prefs.h
+++ b/mail/em-composer-prefs.h
@@ -65,6 +65,7 @@ struct _EMComposerPrefs {
/* Default Behavior */
struct _GtkToggleButton *send_html;
struct _GtkToggleButton *auto_smileys;
+ struct _GtkToggleButton *auto_request_receipt;
struct _GtkToggleButton *prompt_empty_subject;
struct _GtkToggleButton *prompt_bcc_only;
struct _GtkOptionMenu *charset;
diff --git a/mail/evolution-mail.schemas.in b/mail/evolution-mail.schemas.in
index d4fc65a618..381fdd5a71 100644
--- a/mail/evolution-mail.schemas.in
+++ b/mail/evolution-mail.schemas.in
@@ -60,6 +60,20 @@
</schema>
<schema>
+ <key>/schemas/apps/evolution/mail/composer/request_receipt</key>
+ <applyto>/apps/evolution/mail/composer/request_receipt</applyto>
+ <owner>evolution-mail</owner>
+ <type>bool</type>
+ <default>false</default>
+ <locale name="C">
+ <short>Always request read receipt</short>
+ <long>
+ Whether a read receipt request gets added to every message by default.
+ </long>
+ </locale>
+ </schema>
+
+ <schema>
<key>/schemas/apps/evolution/mail/composer/inline_spelling</key>
<applyto>/apps/evolution/mail/composer/inline_spelling</applyto>
<owner>evolution-mail</owner>
diff --git a/mail/mail-config.glade b/mail/mail-config.glade
index 7793bf5077..be14dc151f 100644
--- a/mail/mail-config.glade
+++ b/mail/mail-config.glade
@@ -6882,6 +6882,25 @@ For example: &quot;Work&quot; or &quot;Personal&quot;</property>
</child>
<child>
+ <widget class="GtkCheckButton" id="chkRequestReceipt">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="label" translatable="yes">Always request rea_d receipt</property>
+ <property name="use_underline">True</property>
+ <property name="relief">GTK_RELIEF_NORMAL</property>
+ <property name="focus_on_click">True</property>
+ <property name="active">False</property>
+ <property name="inconsistent">False</property>
+ <property name="draw_indicator">True</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+
+ <child>
<widget class="GtkTable" id="tableForwardsReplies">
<property name="visible">True</property>
<property name="n_rows">3</property>