diff options
author | raveit65 <[email protected]> | 2018-03-10 11:26:00 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-15 19:11:11 +0100 |
commit | 185e7b9e3d6abc3f47c7efcc3f6cdfdcf817bf7b (patch) | |
tree | 8539987e3a197090a77570b51c3be890e949d9da | |
parent | 580e4fa77018dc57cfd88e229fb21b1d87dfd3dd (diff) | |
download | atril-185e7b9e3d6abc3f47c7efcc3f6cdfdcf817bf7b.tar.bz2 atril-185e7b9e3d6abc3f47c7efcc3f6cdfdcf817bf7b.tar.xz |
shell: add keypad accels for zoom_reset
-rw-r--r-- | data/atril-previewer-ui.xml | 1 | ||||
-rw-r--r-- | data/atril-ui.xml | 1 | ||||
-rw-r--r-- | previewer/ev-previewer-window.c | 2 | ||||
-rw-r--r-- | shell/ev-window.c | 2 |
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, |