mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 16:53:46 +01:00
remove zathura->global.update_page_number global hack
The callbacks are no longer aware of it anyways
This commit is contained in:
parent
9367d646d9
commit
84736dc89b
1
marks.c
1
marks.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user