diff options
author | Cleo Menezes Jr <cleomenezesjr@gmail.com> | 2022-07-23 18:11:04 -0400 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-07-29 16:38:26 +0000 |
commit | 8509dffbaebd29772d2f23f9692821bff164182b (patch) | |
tree | d8cd100c3e72c350ea0ef5926cea72812dd63f42 | |
parent | 420e607a02fde163e57d300b822d7d9ffe4d892b (diff) | |
download | epiphany-8509dffbaebd29772d2f23f9692821bff164182b.tar.gz |
window: Add Take Screenshot to the context menu
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1176>
-rw-r--r-- | src/ephy-window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 7a23c9226..3a4968855 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -90,6 +90,7 @@ const struct { { "win.open", { "<Primary>O", NULL } }, { "win.save-as", { "<shift><Primary>S", "<Primary>S", NULL } }, { "win.save-as-application", { "<shift><Primary>A", NULL } }, + { "win.screeenshot", { "<shift><Primary>S", "<Primary>S", NULL } }, { "win.undo", { "<Primary>Z", NULL } }, { "win.redo", { "<shift><Primary>Z", NULL } }, { "win.copy", { "<Primary>C", NULL } }, @@ -819,6 +820,7 @@ static const GActionEntry window_entries [] = { { "open", window_cmd_open }, { "save-as", window_cmd_save_as }, { "save-as-application", window_cmd_save_as_application }, + { "screenshot", window_cmd_screenshot }, { "open-application-manager", window_cmd_open_application_manager }, { "undo", window_cmd_undo }, { "redo", window_cmd_redo }, @@ -983,6 +985,7 @@ const struct { { "open-selection", "open-selection-placeholder" }, { "save-as", N_("Save Pa_ge As…") }, + { "screenshot", N_("_Take Screenshot…") }, { "page-source", N_("_Page Source") } }; @@ -1010,7 +1013,7 @@ _ephy_window_set_default_actions_sensitive (EphyWindow *window, int i; const char *action_group_actions[] = { - "save-as", "save-as-application", "print", + "save-as", "save-as-application", "screenshot" "print", "find", "find-prev", "find-next", "bookmark-page", "encoding", "page-source", "send-to", @@ -1795,6 +1798,8 @@ populate_context_menu (WebKitWebView *web_view, webkit_context_menu_item_new_separator ()); add_action_to_context_menu (context_menu, window_action_group, "save-as", window); + add_action_to_context_menu (context_menu, window_action_group, + "screenshot", window); webkit_context_menu_append (context_menu, webkit_context_menu_item_new_separator ()); |