diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-30 06:56:06 -0700 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-30 06:56:06 -0700 |
commit | 696ecd789f37f977ab13fa2198772c16fe6f93a4 (patch) | |
tree | f3345c2c5f18be4850d53dcafa061d92f9efba6c /src/eom-scroll-view.c | |
parent | d242b0e941799cd5d00d9711802a3896ab7bd3cf (diff) | |
parent | 1b48e723832d01df0c74ac5446ae821e0d665901 (diff) | |
download | eom-696ecd789f37f977ab13fa2198772c16fe6f93a4.tar.bz2 eom-696ecd789f37f977ab13fa2198772c16fe6f93a4.tar.xz |
Merge pull request #16 from eyelash/gseal
replace GDK_<keyname> with GDK_KEY_<keyname>
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r-- | src/eom-scroll-view.c | 24 |
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; |