diff options
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index e0a9fdb299..04acb93386 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -78,7 +78,8 @@ struct _EMailReaderPrivate { guint folder_was_just_selected : 1; guint restoring_message_selection : 1; - guint group_by_threads : 1; + guint group_by_threads : 1; + guint quote_from_selection : 1; }; enum { @@ -2492,6 +2493,15 @@ mail_reader_class_init (EMailReaderIface *iface) FALSE, G_PARAM_READWRITE)); + g_object_interface_install_property ( + iface, + g_param_spec_boolean ( + "quote-from-selection", + "Quote From Selection", + "Quote selected text when replying", + FALSE, + G_PARAM_READWRITE)); + signals[CHANGED] = g_signal_new ( "changed", G_OBJECT_CLASS_TYPE (iface), @@ -3144,6 +3154,36 @@ e_mail_reader_set_group_by_threads (EMailReader *reader, g_object_notify (G_OBJECT (reader), "group-by-threads"); } +gboolean +e_mail_reader_get_quote_from_selection (EMailReader *reader) +{ + EMailReaderPrivate *priv; + + g_return_val_if_fail (E_IS_MAIL_READER (reader), FALSE); + + priv = E_MAIL_READER_GET_PRIVATE (reader); + + return priv->quote_from_selection; +} + +void +e_mail_reader_set_quote_from_selection (EMailReader *reader, + gboolean quote_from_selection) +{ + EMailReaderPrivate *priv; + + g_return_if_fail (E_IS_MAIL_READER (reader)); + + priv = E_MAIL_READER_GET_PRIVATE (reader); + + if (quote_from_selection == priv->quote_from_selection) + return; + + priv->quote_from_selection = quote_from_selection; + + g_object_notify (G_OBJECT (reader), "quote-from-selection"); +} + void e_mail_reader_create_charset_menu (EMailReader *reader, GtkUIManager *ui_manager, |