[gnome-dictionary] app: Remove Copy menu entry
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-dictionary] app: Remove Copy menu entry
- Date: Mon, 18 May 2015 20:44:34 +0000 (UTC)
commit eef74308500df372f4d41807796847b1be205999
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Mon May 18 21:54:32 2015 +0200
app: Remove Copy menu entry
The widgets used for the search entry and for showing the definition
already handle copying selected text. There is no need for an entry
menu to do this, plus we are a step closer to get rid of the Edit menu.
See https://bugzilla.gnome.org/show_bug.cgi?id=334866
src/gdict-app-menus.ui | 7 -------
src/gdict-window.c | 17 -----------------
2 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/gdict-app-menus.ui b/src/gdict-app-menus.ui
index 473ccb7..0f73337 100644
--- a/src/gdict-app-menus.ui
+++ b/src/gdict-app-menus.ui
@@ -63,13 +63,6 @@
<attribute name="label" translatable="yes">_Edit</attribute>
<section>
<item>
- <attribute name="label" translatable="yes">_Copy</attribute>
- <attribute name="action">win.copy</attribute>
- <attribute name="accel"><Primary>c</attribute>
- </item>
- </section>
- <section>
- <item>
<attribute name="label" translatable="yes">Select _All</attribute>
<attribute name="action">win.select-all</attribute>
<attribute name="accel"><Primary>a</attribute>
diff --git a/src/gdict-window.c b/src/gdict-window.c
index ed4c309..836cc45 100644
--- a/src/gdict-window.c
+++ b/src/gdict-window.c
@@ -913,22 +913,6 @@ gdict_window_cmd_file_close_window (GSimpleAction *action,
}
static void
-gdict_window_cmd_edit_copy (GSimpleAction *action,
- GVariant *parameter,
- gpointer user_data)
-{
- GdictWindow *window = user_data;
-
- g_assert (GDICT_IS_WINDOW (window));
-
- if (gtk_widget_has_focus (window->entry))
- gtk_editable_copy_clipboard (GTK_EDITABLE (window->entry));
- else
- gdict_defbox_copy_to_clipboard (GDICT_DEFBOX (window->defbox),
- gtk_clipboard_get (GDK_SELECTION_CLIPBOARD));
-}
-
-static void
gdict_window_cmd_edit_select_all (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
@@ -1167,7 +1151,6 @@ static const GActionEntry entries[] =
{ "close", gdict_window_cmd_file_close_window, NULL, NULL, NULL },
/* Edit menu */
- { "copy", gdict_window_cmd_edit_copy, NULL, NULL, NULL },
{ "select-all", gdict_window_cmd_edit_select_all, NULL, NULL, NULL },
{ "find", gdict_window_cmd_edit_find, NULL, NULL, NULL },
{ "find-next", gdict_window_cmd_edit_find_next, NULL, NULL, NULL },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]