Discussion:
[zathura] [Zathura PATCH] Use jumplist with marks
Marwan Tanager
2013-06-09 21:37:00 UTC
Permalink
---
marks.c | 4 +++-
zathura.h | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/marks.c b/marks.c
index 0fac33d..c00b2cc 100644
--- a/marks.c
+++ b/marks.c
@@ -238,7 +238,9 @@ mark_evaluate(zathura_t* zathura, int key)
zathura_document_set_scale(zathura->document, mark->scale);
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);

diff --git a/zathura.h b/zathura.h
index 438f160..c67446d 100644
--- a/zathura.h
+++ b/zathura.h
@@ -28,7 +28,7 @@ enum {
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;

/* forward declaration for types from render.h */
--
1.7.10.4
Loading...