remove zathura->global.update_page_number global hack

The callbacks are no longer aware of it anyways
This commit is contained in:
Abdo Roig-Maranges 2013-10-20 23:51:13 +02:00
parent 9367d646d9
commit 84736dc89b
4 changed files with 0 additions and 8 deletions

View file

@ -244,7 +244,6 @@ mark_evaluate(zathura_t* zathura, int key)
position_set(zathura, mark->position_x, mark->position_y); position_set(zathura, mark->position_x, mark->position_y);
zathura_jumplist_add(zathura); zathura_jumplist_add(zathura);
zathura->global.update_page_number = true;
return; return;
} }
GIRARA_LIST_FOREACH_END(zathura->global.marks, zathura_mark_t*, iter, mark); GIRARA_LIST_FOREACH_END(zathura->global.marks, zathura_mark_t*, iter, mark);

View file

@ -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)); gtk_adjustment_get_value(x_adj) - (event->x - x));
zathura_adjustment_set_value(y_adj, zathura_adjustment_set_value(y_adj,
gtk_adjustment_get_value(y_adj) - (event->y - y)); gtk_adjustment_get_value(y_adj) - (event->y - y));
zathura->global.update_page_number = true;
break; break;
/* unhandled events */ /* unhandled events */

View file

@ -55,7 +55,6 @@ zathura_create(void)
zathura_t* zathura = g_malloc0(sizeof(zathura_t)); zathura_t* zathura = g_malloc0(sizeof(zathura_t));
/* global settings */ /* global settings */
zathura->global.update_page_number = true;
zathura->global.search_direction = FORWARD; zathura->global.search_direction = FORWARD;
/* plugins */ /* 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_x(zathura->document, position_x);
zathura_document_set_position_y(zathura->document, position_y); 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 */ /* trigger a 'change' event for both adjustments */
refresh_view(zathura); refresh_view(zathura);

View file

@ -101,7 +101,6 @@ struct zathura_s
struct struct
{ {
bool update_page_number; /**< Update current page number */
int search_direction; /**< Current search direction (FORWARD or BACKWARD) */ int search_direction; /**< Current search direction (FORWARD or BACKWARD) */
girara_list_t* marks; /**< Marker */ girara_list_t* marks; /**< Marker */
char** arguments; /**> Arguments that were passed at startup */ char** arguments; /**> Arguments that were passed at startup */