Skip to content

Commit

Permalink
shell: add keypad accels for zoom_reset
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Mar 15, 2018
1 parent 580e4fa commit 185e7b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/atril-previewer-ui.xml
Expand Up @@ -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>
1 change: 1 addition & 0 deletions data/atril-ui.xml
Expand Up @@ -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" />
Expand Down
2 changes: 2 additions & 0 deletions previewer/ev-previewer-window.c
Expand Up @@ -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) }

Expand Down
2 changes: 2 additions & 0 deletions shell/ev-window.c
Expand Up @@ -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,
Expand Down

0 comments on commit 185e7b9

Please sign in to comment.