From 89908f675cfc9a7c83d69f729bf4d4e57cd5a41a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Wed, 2 Jan 2008 12:23:07 +0000 Subject: ** Fix for bug #364642 2008-01-02 Milan Crha ** 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 --- mail/ChangeLog | 11 +++++++++++ mail/em-composer-prefs.c | 4 ++++ mail/em-composer-prefs.h | 1 + mail/evolution-mail.schemas.in | 14 ++++++++++++++ mail/mail-config.glade | 19 +++++++++++++++++++ 5 files changed, 49 insertions(+) (limited to 'mail') 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 + + ** 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 * 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 @@ -59,6 +59,20 @@ + + /schemas/apps/evolution/mail/composer/request_receipt + /apps/evolution/mail/composer/request_receipt + evolution-mail + bool + false + + Always request read receipt + + Whether a read receipt request gets added to every message by default. + + + + /schemas/apps/evolution/mail/composer/inline_spelling /apps/evolution/mail/composer/inline_spelling 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 @@ -6881,6 +6881,25 @@ For example: "Work" or "Personal" + + + True + True + Always request rea_d receipt + True + GTK_RELIEF_NORMAL + True + False + False + True + + + 0 + False + False + + + True -- cgit v1.2.3