From: Nickolay V. Shmyrev Date: Sun, 2 Oct 2005 12:12:26 +0000 (+0000) Subject: Add control+keypad bindings to zoom. X-Git-Tag: EVINCE_0_5_0~119 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=33d99c9f51df0234e7df10d367fe883b0800685b;p=evince.git Add control+keypad bindings to zoom. --- diff --git a/ChangeLog b/ChangeLog index 32f64547..cbc75f12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-02 Nickolay V. Shmyrev + + * data/evince-ui.xml: + * shell/ev-window.c: (ev_window_set_view_accels_sensitivity): + + Add KP_Add and KP_Substract bindings. + 2005-09-27 Christian Persch * shell/ev-window.c: (launch_link), (launch_external_uri), diff --git a/data/evince-ui.xml b/data/evince-ui.xml index b8e772df..e280cbbe 100644 --- a/data/evince-ui.xml +++ b/data/evince-ui.xml @@ -60,6 +60,8 @@ + + @@ -69,10 +71,11 @@ + - - + + diff --git a/shell/ev-window.c b/shell/ev-window.c index 979298fd..d3ac46a5 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -2924,6 +2924,8 @@ static const GtkActionEntry entries[] = { G_CALLBACK (ev_window_cmd_view_zoom_in) }, { "CtrlEqual", GTK_STOCK_ZOOM_IN, NULL, "equal", NULL, G_CALLBACK (ev_window_cmd_view_zoom_in) }, + { "Equal", GTK_STOCK_ZOOM_IN, NULL, "equal", NULL, + G_CALLBACK (ev_window_cmd_view_zoom_in) }, { "Minus", GTK_STOCK_ZOOM_OUT, NULL, "minus", NULL, G_CALLBACK (ev_window_cmd_view_zoom_out) }, { "FocusPageSelector", NULL, "", "l", NULL, @@ -2936,6 +2938,10 @@ static const GtkActionEntry entries[] = { G_CALLBACK (ev_window_cmd_view_zoom_in) }, { "KpMinus", GTK_STOCK_ZOOM_OUT, NULL, "KP_Subtract", NULL, G_CALLBACK (ev_window_cmd_view_zoom_out) }, + { "CtrlKpPlus", GTK_STOCK_ZOOM_IN, NULL, "KP_Add", NULL, + G_CALLBACK (ev_window_cmd_view_zoom_in) }, + { "CtrlKpMinus", GTK_STOCK_ZOOM_OUT, NULL, "KP_Subtract", NULL, + G_CALLBACK (ev_window_cmd_view_zoom_out) }, }; /* Toggle items */ @@ -3156,6 +3162,7 @@ ev_window_set_view_accels_sensitivity (EvWindow *window, gboolean sensitive) set_action_sensitive (window, "Minus", sensitive); set_action_sensitive (window, "KpPlus", sensitive); set_action_sensitive (window, "KpMinus", sensitive); + set_action_sensitive (window, "Equal", sensitive); } }