summaryrefslogtreecommitdiff
path: root/src/eom-scroll-view.c
diff options
context:
space:
mode:
authorElias Aebi <[email protected]>2013-04-25 18:33:45 +0200
committerElias Aebi <[email protected]>2013-04-25 18:33:45 +0200
commit54ddc0c28db0b2f4fe3d834484796bbdff8a324c (patch)
tree0e567be0b0f269d5900ae10cbd20d75fe2a662a2 /src/eom-scroll-view.c
parent38eb3c1377d100e03768bea9e356ded9231d560b (diff)
downloadeom-54ddc0c28db0b2f4fe3d834484796bbdff8a324c.tar.bz2
eom-54ddc0c28db0b2f4fe3d834484796bbdff8a324c.tar.xz
replace some more GDK key constants
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r--src/eom-scroll-view.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c
index f37561c..9a389ae 100644
--- a/src/eom-scroll-view.c
+++ b/src/eom-scroll-view.c
@@ -1339,13 +1339,13 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data)
}
switch (event->keyval) {
- case GDK_Up:
+ case GDK_KEY_Up:
do_scroll = TRUE;
xofs = 0;
yofs = -SCROLL_STEP_SIZE;
break;
- case GDK_Page_Up:
+ case GDK_KEY_Page_Up:
do_scroll = TRUE;
if (event->state & GDK_CONTROL_MASK) {
xofs = -(allocation.width * 3) / 4;
@@ -1356,13 +1356,13 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data)
}
break;
- case GDK_Down:
+ case GDK_KEY_Down:
do_scroll = TRUE;
xofs = 0;
yofs = SCROLL_STEP_SIZE;
break;
- case GDK_Page_Down:
+ case GDK_KEY_Page_Down:
do_scroll = TRUE;
if (event->state & GDK_CONTROL_MASK) {
xofs = (allocation.width * 3) / 4;
@@ -1373,32 +1373,32 @@ display_key_press_event (GtkWidget *widget, GdkEventKey *event, gpointer data)
}
break;
- case GDK_Left:
+ case GDK_KEY_Left:
do_scroll = TRUE;
xofs = -SCROLL_STEP_SIZE;
yofs = 0;
break;
- case GDK_Right:
+ case GDK_KEY_Right:
do_scroll = TRUE;
xofs = SCROLL_STEP_SIZE;
yofs = 0;
break;
- case GDK_plus:
- case GDK_equal:
- case GDK_KP_Add:
+ case GDK_KEY_plus:
+ case GDK_KEY_equal:
+ case GDK_KEY_KP_Add:
do_zoom = TRUE;
zoom = priv->zoom * priv->zoom_multiplier;
break;
- case GDK_minus:
- case GDK_KP_Subtract:
+ case GDK_KEY_minus:
+ case GDK_KEY_KP_Subtract:
do_zoom = TRUE;
zoom = priv->zoom / priv->zoom_multiplier;
break;
- case GDK_1:
+ case GDK_KEY_1:
do_zoom = TRUE;
zoom = 1.0;
break;