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-window.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-window.c')
-rw-r--r-- | src/eom-window.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index aa1ae6f..1c67eff 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -4849,12 +4849,12 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) gboolean handle_selection = FALSE; switch (event->keyval) { - case GDK_space: + case GDK_KEY_space: if (event->state & GDK_CONTROL_MASK) { handle_selection = TRUE; break; } - case GDK_Return: + case GDK_KEY_Return: if (gtk_container_get_focus_child (tbcontainer) == NULL) { /* Image properties dialog case */ if (event->state & GDK_MOD1_MASK) { @@ -4870,8 +4870,8 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) result = TRUE; } break; - case GDK_p: - case GDK_P: + case GDK_KEY_p: + case GDK_KEY_P: if (EOM_WINDOW (widget)->priv->mode == EOM_WINDOW_MODE_FULLSCREEN || EOM_WINDOW (widget)->priv->mode == EOM_WINDOW_MODE_SLIDESHOW) { gboolean slideshow; @@ -4879,9 +4879,9 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) eom_window_run_fullscreen (EOM_WINDOW (widget), !slideshow); } break; - case GDK_Q: - case GDK_q: - case GDK_Escape: + case GDK_KEY_Q: + case GDK_KEY_q: + case GDK_KEY_Escape: if (EOM_WINDOW (widget)->priv->mode == EOM_WINDOW_MODE_FULLSCREEN) { eom_window_stop_fullscreen (EOM_WINDOW (widget), FALSE); } else if (EOM_WINDOW (widget)->priv->mode == EOM_WINDOW_MODE_SLIDESHOW) { @@ -4891,7 +4891,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) return TRUE; } break; - case GDK_Left: + case GDK_KEY_Left: if (event->state & GDK_MOD1_MASK) { /* Alt+Left moves to previous image */ if (is_rtl) { /* move to next in RTL mode */ @@ -4902,7 +4902,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) result = TRUE; break; } /* else fall-trough is intended */ - case GDK_Up: + case GDK_KEY_Up: if (eom_scroll_view_scrollbars_visible (EOM_SCROLL_VIEW (EOM_WINDOW (widget)->priv->view))) { /* break to let scrollview handle the key */ break; @@ -4910,7 +4910,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) if (gtk_container_get_focus_child (tbcontainer) != NULL) break; if (!gtk_widget_get_visible (EOM_WINDOW (widget)->priv->nav)) { - if (is_rtl && event->keyval == GDK_Left) { + if (is_rtl && event->keyval == GDK_KEY_Left) { /* handle RTL fall-through, * need to behave like GDK_Down then */ eom_window_cmd_go_next (NULL, @@ -4922,7 +4922,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) result = TRUE; break; } - case GDK_Right: + case GDK_KEY_Right: if (event->state & GDK_MOD1_MASK) { /* Alt+Right moves to next image */ if (is_rtl) { /* move to previous in RTL mode */ @@ -4933,7 +4933,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) result = TRUE; break; } /* else fall-trough is intended */ - case GDK_Down: + case GDK_KEY_Down: if (eom_scroll_view_scrollbars_visible (EOM_SCROLL_VIEW (EOM_WINDOW (widget)->priv->view))) { /* break to let scrollview handle the key */ break; @@ -4941,7 +4941,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) if (gtk_container_get_focus_child (tbcontainer) != NULL) break; if (!gtk_widget_get_visible (EOM_WINDOW (widget)->priv->nav)) { - if (is_rtl && event->keyval == GDK_Right) { + if (is_rtl && event->keyval == GDK_KEY_Right) { /* handle RTL fall-through, * need to behave like GDK_Up then */ eom_window_cmd_go_prev (NULL, @@ -4953,7 +4953,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) result = TRUE; break; } - case GDK_Page_Up: + case GDK_KEY_Page_Up: if (!eom_scroll_view_scrollbars_visible (EOM_SCROLL_VIEW (EOM_WINDOW (widget)->priv->view))) { if (!gtk_widget_get_visible (EOM_WINDOW (widget)->priv->nav)) { /* If the iconview is not visible skip to the @@ -4966,7 +4966,7 @@ eom_window_key_press (GtkWidget *widget, GdkEventKey *event) handle_selection = TRUE; } break; - case GDK_Page_Down: + case GDK_KEY_Page_Down: if (!eom_scroll_view_scrollbars_visible (EOM_SCROLL_VIEW (EOM_WINDOW (widget)->priv->view))) { if (!gtk_widget_get_visible (EOM_WINDOW (widget)->priv->nav)) { /* If the iconview is not visible skip to the |