diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-26 20:54:08 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-26 20:54:41 +0100 |
commit | 18e96d8c9dd6b0346514121facf8137f13ccd6dc (patch) | |
tree | 96db29d63a69be5cab71c907822a6e4899d0c59b /fastiv-view.c | |
parent | bd7f2f8c987772704a5889790b2dc06fa087ee62 (diff) | |
download | fiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.tar.gz fiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.tar.xz fiv-18e96d8c9dd6b0346514121facf8137f13ccd6dc.zip |
Allow frame iteration in both directions
Diffstat (limited to 'fastiv-view.c')
-rw-r--r-- | fastiv-view.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fastiv-view.c b/fastiv-view.c index 1cbb837..1573ff9 100644 --- a/fastiv-view.c +++ b/fastiv-view.c @@ -452,9 +452,15 @@ fastiv_view_key_press_event(GtkWidget *widget, GdkEventKey *event) gtk_widget_queue_resize(widget); return TRUE; + case GDK_KEY_bracketleft: + if (!(self->frame = cairo_surface_get_user_data( + self->frame, &fastiv_io_key_frame_previous))) + self->frame = self->surface; + gtk_widget_queue_draw(widget); + return TRUE; case GDK_KEY_bracketright: if (!(self->frame = cairo_surface_get_user_data( - self->frame, &fastiv_io_key_frame_next))) + self->frame, &fastiv_io_key_frame_next))) self->frame = self->surface; gtk_widget_queue_draw(widget); return TRUE; |