Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
84736dc8
Commit
84736dc8
authored
Oct 20, 2013
by
Abdo Roig-Maranges
Browse files
remove zathura->global.update_page_number global hack
The callbacks are no longer aware of it anyways
parent
9367d646
Changes
4
Hide whitespace changes
Inline
Side-by-side
marks.c
View file @
84736dc8
...
...
@@ -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
);
...
...
shortcuts.c
View file @
84736dc8
...
...
@@ -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 */
...
...
zathura.c
View file @
84736dc8
...
...
@@ -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
);
...
...
zathura.h
View file @
84736dc8
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment