Use symbolic constant

This commit is contained in:
Sebastian Ramacher 2016-12-04 12:10:29 +01:00
parent 49e96c68e5
commit 0890d1bb19

View File

@ -639,7 +639,7 @@ cb_page_widget_scaled_button_release(ZathuraPage* page_widget, GdkEventButton* e
zathura_page_t* page = zathura_page_widget_get_page(page_widget); zathura_page_t* page = zathura_page_widget_get_page(page_widget);
/* set page number (but don't scroll there. it was clicked on, so it's visible) */ /* set page number (but don't scroll there. it was clicked on, so it's visible) */
if (event->button == 1) { if (event->button == GDK_BUTTON_PRIMARY) {
zathura_document_set_current_page_number(zathura->document, zathura_page_get_index(page)); zathura_document_set_current_page_number(zathura->document, zathura_page_get_index(page));
refresh_view(zathura); refresh_view(zathura);
} }