summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-03-10 11:26:00 +0100
committerraveit65 <[email protected]>2018-03-16 18:03:55 +0100
commit1c2e9ea54f1641e972d5135420aa81c0d7bba84c (patch)
tree3f76027ba9df81a06597dfcb559c90b5a8585240
parent7619dc678fcc3e64ccefb0565517ca6f14554550 (diff)
downloadatril-1c2e9ea54f1641e972d5135420aa81c0d7bba84c.tar.bz2
atril-1c2e9ea54f1641e972d5135420aa81c0d7bba84c.tar.xz
shell: add keypad accels for zoom_reset
-rw-r--r--data/atril-previewer-ui.xml1
-rw-r--r--data/atril-ui.xml1
-rw-r--r--previewer/ev-previewer-window.c2
-rw-r--r--shell/ev-window.c2
4 files changed, 6 insertions, 0 deletions
diff --git a/data/atril-previewer-ui.xml b/data/atril-previewer-ui.xml
index b836d412..8c6e95f6 100644
--- a/data/atril-previewer-ui.xml
+++ b/data/atril-previewer-ui.xml
@@ -26,4 +26,5 @@
<accelerator name="KpMinusAccel" action="KpMinus"/>
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
+ <accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
</ui>
diff --git a/data/atril-ui.xml b/data/atril-ui.xml
index f836bdf5..851a014c 100644
--- a/data/atril-ui.xml
+++ b/data/atril-ui.xml
@@ -129,6 +129,7 @@
<accelerator name="KpMinusAccel" action="KpMinus"/>
<accelerator name="CtrlKpPlusAccel" action="CtrlKpPlus"/>
<accelerator name="CtrlKpMinusAccel" action="CtrlKpMinus"/>
+ <accelerator name="CtrlKpZeroAccel" action="CtrlKpZero"/>
<accelerator name="CtrlInsertAccel" action="CtrlInsert" />
<accelerator name="FitPageAccel" action ="FitPage" />
<accelerator name="FitWidthAccel" action ="FitWidth" />
diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c
index 38848e39..3920d2db 100644
--- a/previewer/ev-previewer-window.c
+++ b/previewer/ev-previewer-window.c
@@ -324,6 +324,8 @@ static const GtkActionEntry accel_entries[] = {
G_CALLBACK (ev_previewer_window_zoom_in) },
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
G_CALLBACK (ev_previewer_window_zoom_out) },
+ { "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
+ G_CALLBACK (ev_previewer_window_zoom_reset) },
{ "FocusPageSelector", NULL, "", "<control>l", NULL,
G_CALLBACK (ev_previewer_window_focus_page_selector) }
diff --git a/shell/ev-window.c b/shell/ev-window.c
index e7fc6538..eeec9f81 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -6404,6 +6404,8 @@ static const GtkActionEntry entries[] = {
G_CALLBACK (ev_window_cmd_view_zoom_in) },
{ "CtrlKpMinus", "zoom-out", NULL, "<control>KP_Subtract", NULL,
G_CALLBACK (ev_window_cmd_view_zoom_out) },
+ { "CtrlKpZero", "zoom-original", NULL, "<control>KP_0", NULL,
+ G_CALLBACK (ev_window_cmd_view_zoom_reset) },
{ "CtrlInsert", "edit-copy", NULL, "<control>Insert", NULL,
G_CALLBACK (ev_window_cmd_edit_copy) },
{ "FitPage", EV_STOCK_ZOOM_PAGE, NULL, "f", NULL,