diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-14 07:27:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-14 07:30:20 +0800 |
commit | a972d9ab59660d7137fdf0918133b2e3f1c41545 (patch) | |
tree | 962a40a7418ca5b2de32d11ceacee47bd7f0e9c5 /mail/e-mail-browser.c | |
parent | dba7eededd03ad2de3c126301e9d048390bb6f43 (diff) | |
download | gsoc2013-evolution-a972d9ab59660d7137fdf0918133b2e3f1c41545.tar.gz gsoc2013-evolution-a972d9ab59660d7137fdf0918133b2e3f1c41545.tar.zst gsoc2013-evolution-a972d9ab59660d7137fdf0918133b2e3f1c41545.zip |
Bug 624285 - When replying, ignore text selection if preview is hidden
Diffstat (limited to 'mail/e-mail-browser.c')
-rw-r--r-- | mail/e-mail-browser.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c index 86cc929182..7ddfe005ed 100644 --- a/mail/e-mail-browser.c +++ b/mail/e-mail-browser.c @@ -64,6 +64,7 @@ enum { PROP_0, PROP_FOCUS_TRACKER, PROP_GROUP_BY_THREADS, + PROP_QUOTE_FROM_SELECTION, PROP_SHELL_BACKEND, PROP_SHOW_DELETED, PROP_UI_MANAGER @@ -357,6 +358,11 @@ mail_browser_set_property (GObject *object, g_value_get_boolean (value)); return; + case PROP_QUOTE_FROM_SELECTION: + e_mail_reader_set_quote_from_selection ( + E_MAIL_READER (object), + g_value_get_boolean (value)); + case PROP_SHELL_BACKEND: mail_browser_set_shell_backend ( E_MAIL_BROWSER (object), @@ -392,6 +398,12 @@ mail_browser_get_property (GObject *object, E_MAIL_READER (object))); return; + case PROP_QUOTE_FROM_SELECTION: + g_value_set_boolean ( + value, e_mail_reader_get_quote_from_selection ( + E_MAIL_READER (object))); + return; + case PROP_SHELL_BACKEND: g_value_set_object ( value, e_mail_reader_get_shell_backend ( @@ -545,6 +557,8 @@ mail_browser_constructed (GObject *object) e_mail_reader_init (reader); + e_mail_reader_set_quote_from_selection (reader, TRUE); + action_group = priv->action_group; gtk_action_group_set_translation_domain (action_group, domain); gtk_action_group_add_actions ( @@ -791,6 +805,12 @@ mail_browser_class_init (EMailBrowserClass *class) PROP_GROUP_BY_THREADS, "group-by-threads"); + /* Inherited from EMailReader */ + g_object_class_override_property ( + object_class, + PROP_QUOTE_FROM_SELECTION, + "quote-from-selection"); + g_object_class_install_property ( object_class, PROP_SHELL_BACKEND, |