[evolution] EHTMLEditorActions - Paste Quotation action is always active
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorActions - Paste Quotation action is always active
- Date: Thu, 26 May 2016 13:36:56 +0000 (UTC)
commit a59a494044cc41a4d0d6caafc7967a139aa8de57
Author: Tomas Popela <tpopela redhat com>
Date: Thu May 26 15:31:01 2016 +0200
EHTMLEditorActions - Paste Quotation action is always active
e-util/e-html-editor-actions.c | 4 ++++
e-util/e-html-editor-actions.h | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index e5b524c..318dbac 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -2140,6 +2140,10 @@ editor_actions_init (EHTMLEditor *editor)
view, "can-paste",
ACTION (PASTE), "sensitive",
G_BINDING_SYNC_CREATE);
+ e_binding_bind_property (
+ view, "can-paste",
+ ACTION (PASTE_QUOTE), "sensitive",
+ G_BINDING_SYNC_CREATE);
/* This is connected to JUSTIFY_LEFT action only, but
* it automatically applies on all actions in the group. */
diff --git a/e-util/e-html-editor-actions.h b/e-util/e-html-editor-actions.h
index 1a230a0..6991503 100644
--- a/e-util/e-html-editor-actions.h
+++ b/e-util/e-html-editor-actions.h
@@ -113,6 +113,8 @@
E_HTML_EDITOR_ACTION ((editor), "monospaced")
#define E_HTML_EDITOR_ACTION_PASTE(editor) \
E_HTML_EDITOR_ACTION ((editor), "paste")
+#define E_HTML_EDITOR_ACTION_PASTE_QUOTE(editor) \
+ E_HTML_EDITOR_ACTION ((editor), "paste-quote")
#define E_HTML_EDITOR_ACTION_PROPERTIES_RULE(editor) \
E_HTML_EDITOR_ACTION ((editor), "properties-rule")
#define E_HTML_EDITOR_ACTION_PROPERTIES_TABLE(editor) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]