[gthumb] removed the hardcoded shortcuts from the menus
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] removed the hardcoded shortcuts from the menus
- Date: Sun, 24 Nov 2019 12:32:07 +0000 (UTC)
commit 6d9e0854b8ead67bff3c32774ed6eb6dc969c3d5
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Nov 13 18:07:56 2019 +0100
removed the hardcoded shortcuts from the menus
extensions/bookmarks/data/ui/bookmarks-menu.ui | 1 -
extensions/catalogs/callbacks.c | 4 ++--
extensions/edit_metadata/callbacks.c | 4 ++--
extensions/file_manager/callbacks.c | 10 +++++-----
extensions/image_print/callbacks.c | 4 ++--
extensions/image_rotation/callbacks.c | 8 ++++----
extensions/selections/callbacks.c | 4 ++--
gthumb/resources/file-list-menu.ui | 1 -
gthumb/resources/file-menu.ui | 1 -
gthumb/resources/gears-menu.ui | 4 ----
10 files changed, 17 insertions(+), 24 deletions(-)
---
diff --git a/extensions/bookmarks/data/ui/bookmarks-menu.ui b/extensions/bookmarks/data/ui/bookmarks-menu.ui
index 81319d7b..9917aa53 100644
--- a/extensions/bookmarks/data/ui/bookmarks-menu.ui
+++ b/extensions/bookmarks/data/ui/bookmarks-menu.ui
@@ -10,7 +10,6 @@
<item>
<attribute name="label" translatable="yes">_Edit Bookmarks…</attribute>
<attribute name="action">win.bookmarks-edit</attribute>
- <attribute name="accel"><![CDATA[<Ctrl>b]]></attribute>
</item>
</section>
<submenu id="system-bookmarks">
diff --git a/extensions/catalogs/callbacks.c b/extensions/catalogs/callbacks.c
index 3d66c6e6..84feec75 100644
--- a/extensions/catalogs/callbacks.c
+++ b/extensions/catalogs/callbacks.c
@@ -54,12 +54,12 @@ static const GthMenuEntry fixed_menu_entries[] = {
static const GthMenuEntry vfs_open_actions_entries[] = {
- { N_("Open Folder"), "win.go-to-container-from-catalog", "<Alt>end" },
+ { N_("Open Folder"), "win.go-to-container-from-catalog" },
};
static const GthMenuEntry vfs_other_actions_entries[] = {
- { N_("Remove from Catalog"), "win.remove-from-catalog", "Delete" },
+ { N_("Remove from Catalog"), "win.remove-from-catalog" },
};
diff --git a/extensions/edit_metadata/callbacks.c b/extensions/edit_metadata/callbacks.c
index 46facb36..6c3ce513 100644
--- a/extensions/edit_metadata/callbacks.c
+++ b/extensions/edit_metadata/callbacks.c
@@ -53,8 +53,8 @@ static const GthMenuEntry tools_actions[] = {
static const GthMenuEntry file_list_actions[] = {
- { N_("Comment"), "win.edit-metadata", "C" },
- { N_("Tags"), "win.edit-tags", "T" }
+ { N_("Comment"), "win.edit-metadata" },
+ { N_("Tags"), "win.edit-tags" }
};
diff --git a/extensions/file_manager/callbacks.c b/extensions/file_manager/callbacks.c
index b60283d3..dcafa418 100644
--- a/extensions/file_manager/callbacks.c
+++ b/extensions/file_manager/callbacks.c
@@ -70,16 +70,16 @@ static const GActionEntry actions[] = {
static const GthMenuEntry fixed_menu_entries_edit[] = {
- { N_("Cut"), "win.edit-cut", "<Control>x" },
- { N_("Copy"), "win.edit-copy", "<Control>c" },
- { N_("Paste"), "win.edit-paste", "<Control>v" },
+ { N_("Cut"), "win.edit-cut" },
+ { N_("Copy"), "win.edit-copy" },
+ { N_("Paste"), "win.edit-paste" },
};
static const GthMenuEntry fixed_menu_entries_file[] = {
{ N_("Copy to…"), "win.copy-to-folder" },
{ N_("Move to…"), "win.move-to-folder" },
- { N_("Rename"), "win.file-list-rename", "F2" },
+ { N_("Rename"), "win.file-list-rename" },
};
@@ -115,7 +115,7 @@ static const GthMenuEntry folder_context_folder_entries[] = {
static const GthMenuEntry vfs_entries[] = {
- { N_("Duplicate"), "win.duplicate", "<Control>d" }
+ { N_("Duplicate"), "win.duplicate" }
};
diff --git a/extensions/image_print/callbacks.c b/extensions/image_print/callbacks.c
index 6ca06347..f52f52c1 100644
--- a/extensions/image_print/callbacks.c
+++ b/extensions/image_print/callbacks.c
@@ -52,13 +52,13 @@ ip__gth_browser_construct_cb (GthBrowser *browser)
GTH_MENU_MANAGER_NEW_MERGE_ID,
_("Print"),
"win.print",
- "<control>P",
+ NULL,
NULL);
gth_menu_manager_append_entry (gth_browser_get_menu_manager (browser,
GTH_BROWSER_MENU_MANAGER_FILE_LIST_OPEN_ACTIONS),
GTH_MENU_MANAGER_NEW_MERGE_ID,
_("Print"),
"win.print",
- "<control>P",
+ NULL,
NULL);
gth_window_add_shortcuts (GTH_WINDOW (browser),
shortcuts,
diff --git a/extensions/image_rotation/callbacks.c b/extensions/image_rotation/callbacks.c
index dcb6327b..6959e7c0 100644
--- a/extensions/image_rotation/callbacks.c
+++ b/extensions/image_rotation/callbacks.c
@@ -49,14 +49,14 @@ static const GthShortcut shortcuts[] = {
static const GthMenuEntry tools1_action_entries[] = {
- { N_("Rotate Left"), "win.rotate-left", "bracketleft", "object-rotate-left-symbolic" },
- { N_("Rotate Right"), "win.rotate-right", "bracketright", "object-rotate-right-symbolic" },
+ { N_("Rotate Left"), "win.rotate-left", NULL, "object-rotate-left-symbolic" },
+ { N_("Rotate Right"), "win.rotate-right", NULL, "object-rotate-right-symbolic" },
};
static const GthMenuEntry tools2_action_entries[] = {
- { N_("Rotate Physically"), "win.apply-orientation", NULL },
- { N_("Reset the EXIF Orientation"), "win.reset-orientation", NULL }
+ { N_("Rotate Physically"), "win.apply-orientation" },
+ { N_("Reset the EXIF Orientation"), "win.reset-orientation" }
};
diff --git a/extensions/selections/callbacks.c b/extensions/selections/callbacks.c
index 6fb0ebc8..1664d924 100644
--- a/extensions/selections/callbacks.c
+++ b/extensions/selections/callbacks.c
@@ -71,12 +71,12 @@ static const GthShortcut shortcuts[] = {
static const GthMenuEntry file_list_popup_open_entries[] = {
- { N_("Open Folder"), "win.go-to-container-from-selection", "<Alt>end" },
+ { N_("Open Folder"), "win.go-to-container-from-selection" },
};
static const GthMenuEntry file_list_popup_delete_entries[] = {
- { N_("Remove from Selection"), "win.remove-from-selection", "Delete" },
+ { N_("Remove from Selection"), "win.remove-from-selection" },
};
diff --git a/gthumb/resources/file-list-menu.ui b/gthumb/resources/file-list-menu.ui
index f48fea81..eac43af5 100644
--- a/gthumb/resources/file-list-menu.ui
+++ b/gthumb/resources/file-list-menu.ui
@@ -6,7 +6,6 @@
<item>
<attribute name="label" translatable="yes">Fullscreen</attribute>
<attribute name="action">win.fullscreen</attribute>
- <attribute name="accel">F11</attribute>
</item>
</section>
<section id="open-actions">
diff --git a/gthumb/resources/file-menu.ui b/gthumb/resources/file-menu.ui
index 76e11a93..3af9d6a3 100644
--- a/gthumb/resources/file-menu.ui
+++ b/gthumb/resources/file-menu.ui
@@ -6,7 +6,6 @@
<item>
<attribute name="label" translatable="yes">Fullscreen</attribute>
<attribute name="action">win.fullscreen</attribute>
- <attribute name="accel">F11</attribute>
</item>
</section>
<section id="open-actions">
diff --git a/gthumb/resources/gears-menu.ui b/gthumb/resources/gears-menu.ui
index a7aef5df..39857a28 100644
--- a/gthumb/resources/gears-menu.ui
+++ b/gthumb/resources/gears-menu.ui
@@ -6,19 +6,16 @@
<item>
<attribute name="label" translatable="yes">New Window</attribute>
<attribute name="action">app.new-window</attribute>
- <attribute name="accel"><![CDATA[<Ctrl>n]]></attribute>
</item>
<item>
<attribute name="label" translatable="yes">Open Location…</attribute>
<attribute name="action">win.open-location</attribute>
- <attribute name="accel"><![CDATA[<Ctrl>l]]></attribute>
</item>
</section>
<section>
<item>
<attribute name="label" translatable="yes">Save</attribute>
<attribute name="action">win.save</attribute>
- <attribute name="accel"><![CDATA[<Ctrl>s]]></attribute>
</item>
<item>
<attribute name="label" translatable="yes">Save As…</attribute>
@@ -27,7 +24,6 @@
<item>
<attribute name="label" translatable="yes">Revert</attribute>
<attribute name="action">win.revert-to-saved</attribute>
- <attribute name="accel">F4</attribute>
</item>
</section>
<section id="view-actions">
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]