mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:35:59 +01:00
Use jumplist with marks
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
a0c12d4cdd
commit
092fe81839
2 changed files with 4 additions and 2 deletions
4
marks.c
4
marks.c
|
@ -238,7 +238,9 @@ mark_evaluate(zathura_t* zathura, int key)
|
||||||
zathura_document_set_scale(zathura->document, mark->scale);
|
zathura_document_set_scale(zathura->document, mark->scale);
|
||||||
render_all(zathura);
|
render_all(zathura);
|
||||||
|
|
||||||
position_set_delayed(zathura, mark->position_x, mark->position_y);
|
zathura_jumplist_add(zathura);
|
||||||
|
position_set(zathura, mark->position_x, mark->position_y);
|
||||||
|
zathura_jumplist_add(zathura);
|
||||||
|
|
||||||
cb_view_vadjustment_value_changed(NULL, zathura);
|
cb_view_vadjustment_value_changed(NULL, zathura);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ enum {
|
||||||
ZATHURA_PAGE_NUMBER_UNSPECIFIED = INT_MIN
|
ZATHURA_PAGE_NUMBER_UNSPECIFIED = INT_MIN
|
||||||
};
|
};
|
||||||
|
|
||||||
/* forward declaration for types form database.h */
|
/* forward declaration for types from database.h */
|
||||||
typedef struct _ZathuraDatabase zathura_database_t;
|
typedef struct _ZathuraDatabase zathura_database_t;
|
||||||
|
|
||||||
/* forward declaration for types from render.h */
|
/* forward declaration for types from render.h */
|
||||||
|
|
Loading…
Reference in a new issue