Commit 615629a9 authored by Diego Escalante Urrelo's avatar Diego Escalante Urrelo Committed by Carlos Garcia Campos

[previewer] Close with control + w

Fixes bug #612972.
parent 4d91ce6a
......@@ -13,6 +13,7 @@
<toolitem name="PreviewPrint" action="PreviewPrint"/>
</toolbar>
<accelerator name="FileCloseWindowAccel" action="FileCloseWindow"/>
<accelerator name="SpaceAccel" action="Space"/>
<accelerator name="ReturnAccel" action="Return"/>
<accelerator name="BackSpaceAccel" action="BackSpace"/>
......
......@@ -96,6 +96,13 @@ ev_previewer_window_error_dialog_run (EvPreviewerWindow *window,
}
#endif
static void
ev_previewer_window_close (GtkAction *action,
EvPreviewerWindow *window)
{
gtk_widget_destroy (GTK_WIDGET (window));
}
static void
ev_previewer_window_previous_page (GtkAction *action,
EvPreviewerWindow *window)
......@@ -271,6 +278,9 @@ ev_previewer_window_print (GtkAction *action,
#endif
static const GtkActionEntry action_entries[] = {
{ "FileCloseWindow", GTK_STOCK_CLOSE, NULL, "<control>W",
NULL,
G_CALLBACK (ev_previewer_window_close) },
{ "GoPreviousPage", GTK_STOCK_GO_UP, N_("_Previous Page"), "<control>Page_Up",
N_("Go to the previous page"),
G_CALLBACK (ev_previewer_window_previous_page) },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment