[evolution/wip/webkit2] Remove the 'Insert Table' action from Table context menu
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit2] Remove the 'Insert Table' action from Table context menu
- Date: Fri, 22 Jul 2016 11:17:26 +0000 (UTC)
commit 581121c531ca1ab156cfcd7b3a642de24daec39a
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jul 22 12:10:35 2016 +0200
Remove the 'Insert Table' action from Table context menu
New table should be added only through the toolbar or menu.
e-util/e-html-editor-actions.c | 7 -------
e-util/e-html-editor-actions.h | 2 --
e-util/e-html-editor-manager.ui | 2 --
e-util/e-html-editor.c | 1 -
4 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/e-util/e-html-editor-actions.c b/e-util/e-html-editor-actions.c
index 24aecdd..ab7b38d 100644
--- a/e-util/e-html-editor-actions.c
+++ b/e-util/e-html-editor-actions.c
@@ -1433,13 +1433,6 @@ static GtkActionEntry html_context_entries[] = {
NULL,
G_CALLBACK (action_context_insert_row_below_cb) },
- { "context-insert-table",
- NULL,
- N_("Table"),
- NULL,
- NULL,
- G_CALLBACK (action_insert_table_cb) },
-
{ "context-properties-cell",
NULL,
N_("Cell..."),
diff --git a/e-util/e-html-editor-actions.h b/e-util/e-html-editor-actions.h
index 232d63e..e5a7e36 100644
--- a/e-util/e-html-editor-actions.h
+++ b/e-util/e-html-editor-actions.h
@@ -47,8 +47,6 @@
E_HTML_EDITOR_ACTION ((editor), "context-insert-row-above")
#define E_HTML_EDITOR_ACTION_CONTEXT_INSERT_ROW_BELOW(editor) \
E_HTML_EDITOR_ACTION ((editor), "context-insert-row-below")
-#define E_HTML_EDITOR_ACTION_CONTEXT_INSERT_TABLE(editor) \
- E_HTML_EDITOR_ACTION ((editor), "context-insert-table")
#define E_HTML_EDITOR_ACTION_CONTEXT_PROPERTIES_CELL(editor) \
E_HTML_EDITOR_ACTION ((editor), "context-properties-cell")
#define E_HTML_EDITOR_ACTION_CONTEXT_PROPERTIES_IMAGE(editor) \
diff --git a/e-util/e-html-editor-manager.ui b/e-util/e-html-editor-manager.ui
index b4fc430..fa7bc0b 100644
--- a/e-util/e-html-editor-manager.ui
+++ b/e-util/e-html-editor-manager.ui
@@ -163,8 +163,6 @@
</menu>
<separator/>
<menu action='context-insert-table-menu'>
- <menuitem action='context-insert-table'/>
- <separator/>
<menuitem action='context-insert-row-above'/>
<menuitem action='context-insert-row-below'/>
<separator/>
diff --git a/e-util/e-html-editor.c b/e-util/e-html-editor.c
index 73a6eb3..fbe7c6e 100644
--- a/e-util/e-html-editor.c
+++ b/e-util/e-html-editor.c
@@ -380,7 +380,6 @@ html_editor_update_actions (EHTMLEditor *editor)
gtk_action_set_visible (ACTION (CONTEXT_INSERT_COLUMN_BEFORE), visible);
gtk_action_set_visible (ACTION (CONTEXT_INSERT_ROW_ABOVE), visible);
gtk_action_set_visible (ACTION (CONTEXT_INSERT_ROW_BELOW), visible);
- gtk_action_set_visible (ACTION (CONTEXT_INSERT_TABLE), visible);
gtk_action_set_visible (ACTION (CONTEXT_PROPERTIES_CELL), visible);
visible = (flags & E_CONTENT_EDITOR_NODE_IS_TABLE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]