Commit 84736dc8 authored by Abdo Roig-Maranges's avatar Abdo Roig-Maranges

remove zathura->global.update_page_number global hack

The callbacks are no longer aware of it anyways
parent 9367d646
......@@ -244,7 +244,6 @@ mark_evaluate(zathura_t* zathura, int key)
position_set(zathura, mark->position_x, mark->position_y);
zathura_jumplist_add(zathura);
zathura->global.update_page_number = true;
return;
}
GIRARA_LIST_FOREACH_END(zathura->global.marks, zathura_mark_t*, iter, mark);
......
......@@ -305,7 +305,6 @@ sc_mouse_scroll(girara_session_t* session, girara_argument_t* argument, girara_e
gtk_adjustment_get_value(x_adj) - (event->x - x));
zathura_adjustment_set_value(y_adj,
gtk_adjustment_get_value(y_adj) - (event->y - y));
zathura->global.update_page_number = true;
break;
/* unhandled events */
......
......@@ -55,7 +55,6 @@ zathura_create(void)
zathura_t* zathura = g_malloc0(sizeof(zathura_t));
/* global settings */
zathura->global.update_page_number = true;
zathura->global.search_direction = FORWARD;
/* plugins */
......@@ -1115,10 +1114,6 @@ position_set(zathura_t* zathura, double position_x, double position_y)
zathura_document_set_position_x(zathura->document, position_x);
zathura_document_set_position_y(zathura->document, position_y);
/* prevent cb_view_adjustment_value_changed from updating document page number and
position from the adjustments. */
zathura->global.update_page_number = false;
/* trigger a 'change' event for both adjustments */
refresh_view(zathura);
......
......@@ -101,7 +101,6 @@ struct zathura_s
struct
{
bool update_page_number; /**< Update current page number */
int search_direction; /**< Current search direction (FORWARD or BACKWARD) */
girara_list_t* marks; /**< Marker */
char** arguments; /**> Arguments that were passed at startup */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment