Use jumplist with marks

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Marwan Tanager 2013-06-09 23:37:00 +02:00 committed by Sebastian Ramacher
parent a0c12d4cdd
commit 092fe81839
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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 */