aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-07-14 07:27:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-07-14 07:30:20 +0800
commita972d9ab59660d7137fdf0918133b2e3f1c41545 (patch)
tree962a40a7418ca5b2de32d11ceacee47bd7f0e9c5 /mail/e-mail-reader.c
parentdba7eededd03ad2de3c126301e9d048390bb6f43 (diff)
downloadgsoc2013-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-reader.c')
-rw-r--r--mail/e-mail-reader.c42
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,