Permalink
Browse files

Add support for the back/forward buttons on mouses

  • Loading branch information...
hellosiyan committed Nov 15, 2015
1 parent b3d2316 commit c8f20953f4c2c6ebcf63125dd913becc51ca9ddf
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/uni-image-view.c
View
@@ -581,6 +581,14 @@ uni_image_view_button_press (GtkWidget * widget, GdkEventButton * ev)
gtk_get_current_event_time());
}
else if(ev->type == GDK_BUTTON_PRESS && ev->button == 8)
{
vnr_window_prev(vnr_win);
}
else if(ev->type == GDK_BUTTON_PRESS && ev->button == 9)
{
vnr_window_next(vnr_win, TRUE);
}
return 0;
}

0 comments on commit c8f2095

Please sign in to comment.