Commit graph

266 commits

Author SHA1 Message Date
Sebastian Ramacher
c190386f9e Fix scroll_wrap logic on first and last page. (Closes #52)
Thanks egl209 for the patch.
2011-08-25 00:57:56 +02:00
karottenreibe
53c8420f8a ignoring MOD5, which is used in some keyboard layouts
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-08-25 00:52:57 +02:00
Sebastian Ramacher
66fa0f5648 Don't invert y coordinate (Closes: #42).
No need to invert it with poppler >=0.15
2011-07-27 00:18:21 +02:00
Moritz Lipp
da42eb7517 Reduce variable scope 2011-07-12 20:04:26 +02:00
Moritz Lipp
644330de76 Fix memory leak 2011-07-12 20:03:18 +02:00
Sebastian Ramacher
f302627263 close file handle 2011-07-10 19:51:59 +02:00
Sebastian Ramacher
6e72194b0d reload and write bookmarks before/after adding and deleting a bookmark 2011-07-08 17:03:05 +02:00
Sebastian Ramacher
52c8bedc60 Fix memory leaks in cb_inputbar_activate and handle empty bookmark names in
cmd_bookmark.

Thanks to Pavel Borzenkov for noticing the issue with empty bookmark names.
2011-07-07 14:00:10 +02:00
Pavel Borzenkov
2e7dac75de Fix GString related memory leaks
This patch fixes a couple of GString related memory leaks. There is one
left in the cmd_set() function for the 's' type settings, but to fix it
we need to rework settings architecture a bit.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-07 13:22:45 +02:00
Pavel Borzenkov
7a1a4d6ddd Don't allow to set bookmarks with reserved names
Currently, 'page', 'offset' and 'scale' are reserved bookmark names.
We should not allow to set arbitary bookmarks with such names.

Also, this patch fixes memory leaks in the cmd_bookmark() function.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-07 13:21:04 +02:00
Pavel Borzenkov
52d32c4982 Fix bookmarks completion
My previous patch a206e5bb1f
(Save zoom level in the bookmarks file) added third varible with special
meaning into the bookmarks file. Add it to the exception list.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-05 14:59:43 +02:00
Pavel Borzenkov
33cda59c05 Save zoom level in the bookmarks file
This patch introduces new configuration option: save_zoom_level.
If this option is set (default) zathura will store zoom level
in the bookmarks file on quit and restore it on open.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-05 13:11:58 +02:00
Pavel Borzenkov
b9b4b8ef1f Don't update status bar when scrolling left/right
Don't update Zathura.State.scroll_percentage when scrolling left/right
to avoid wrong values in the status bar.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-07-05 13:11:58 +02:00
Sebastian Ramacher
53ae144b32 Fix blinking while switching pages (Closes: #13)
Thanks to sagesag for the patch. If this breaks anything feel free to revert
this change.
2011-07-01 14:42:08 +02:00
Sebastian Ramacher
659df484ea Fix input issues in fullscreen mode (Closes: #33)
Thanks to sagesag for the patch.
2011-07-01 14:37:33 +02:00
Sebastian Ramacher
471c011f8d Support :digits (Closes: #41)
Thanks to Serge Guelton for the patch. Applied with some small modifications.
2011-07-01 14:00:33 +02:00
Sebastian Ramacher
33ac8b2c33 Fix index navigation issues (Closes: #40).
Thanks to Serge Guelton for the patch.
2011-07-01 13:43:16 +02:00
Sebastian Ramacher
5a2af2bc71 'cherry-pick' changes from jumanji 2011-06-26 02:55:56 +02:00
Sebastian Ramacher
3cf7505401 'cherry-pick' e84bb6f from jumanji 2011-06-25 21:17:40 +02:00
Moritz Lipp
deacc66ab4 Fixed backwards searching 2011-05-19 10:57:42 +02:00
Sebastian Ramacher
4400d8abd9 make :write save and make it work with relative paths 2011-04-03 16:29:39 +02:00
Sebastian Ramacher
9f0be39db6 Fix regression from a1fe0f0b
In some cases sc_reload could still segfault. This should fix it.
2011-03-21 02:09:38 +01:00
Sebastian Ramacher
e395528e0d Fix GOptionEntries
... to make GLib 2.28 happy.
2011-03-21 01:49:01 +01:00
Moritz Lipp
d7e82969a5 Fixed print command with additional arguments.
Previous version ignored second argument if more than 2 were given and
quoted the additional arguments leading to lp thinking they represented
a filename.

Before:
:print HPF300 14-15 -o side=onesided
-> lp -d HPF300 -P 1-38 ' -o side=onesided' 'filename'

Now:
:print HPF300 14-15 -o side=onesided
-> lp -d HPF300 -P 14-15  -o side=onesided 'filename'

Signed-off-by: mlq <mlq@pwmt.org>
2011-03-09 22:34:48 +01:00
Sebastian Ramacher
382f5e7618 Don't segfault if reloaded document has less pages. 2011-02-17 19:45:02 +01:00
Moritz Lipp
d2503b49c3 Hide inputbar frame 2011-01-11 02:35:01 +01:00
Sebastian Ramacher
0883b88d0c fix build error with poppler >= 0.15 2011-01-02 11:05:30 +01:00
Sebastian Ramacher
2c7c779984 redraw search result on NO_SEARCH 2010-12-21 15:20:03 +01:00
Sebastian Ramacher
72312aea2d remove a memory leak 2010-12-21 15:11:14 +01:00
Sebastian Ramacher
12e6f8281c Fix some memory problems in search 2010-12-21 14:40:05 +01:00
Moritz Lipp
d56c6da26e Renamed functions 2010-12-21 11:57:31 +01:00
Moritz Lipp
309566c58a Text searching problems
Updates the behaviour of the search function. Thanks to qnikst.
2010-12-21 11:53:40 +01:00
Moritz Lipp
ac12830a00 Hide inputbar 2010-12-17 03:40:57 +01:00
Sebastian Ramacher
c7dbde9b43 Remove two memory leaks. 2010-12-11 17:24:09 +01:00
Sebastian Ramacher
19ff39b6c6 Make :open ~/some/file.pdf work again. 2010-12-11 17:17:31 +01:00
Sebastian Ramacher
75c800e197 Fix a regression from f91bea5f. 2010-12-11 17:16:19 +01:00
Sebastian Ramacher
41812c5939 Add option to disable auto-generated bookmarks (closes #73)
Applying patch from Minoru with some modifications since we already have
read_bookmarks_file.
2010-12-11 10:12:50 +01:00
Sebastian Ramacher
0ab36aab2e more memory cleanup 2010-12-11 10:06:43 +01:00
Sebastian Ramacher
4bf5718349 Reread bookmarks file before writing (closes #74)
Applying patch from Minoru with some simple adapations. Therefor
read_bookmarks_file doesn't leak (bookmarks is never freed).
2010-12-11 09:51:35 +01:00
Sebastian Ramacher
335fdbb533 Make it build without warnings if -Wno-zero-length is not set. 2010-12-01 23:07:09 +01:00
Sebastian Ramacher
4fe4bfcde1 Fix some memory issues related to bookmarks (closes #26). 2010-12-01 11:19:35 +01:00
Sebastian Ramacher
ed2e0d1014 remove double g_mutex_static_init 2010-11-17 18:56:51 +01:00
Sebastian Ramacher
229f2ab8b3 Fix a memory leak in init_look.
init_look may be called from cmd_set so we've to free Zathura.Style.font first.
2010-11-17 09:46:05 +01:00
Sebastian Ramacher
815f2b5243 Make 'set scroll_wrap' work as expected.
Thank's to wart_.
2010-11-09 16:03:53 +01:00
Sebastian Ramacher
48a2991333 Display scoll percentage in statusbar (Closes #58).
Thank's to acieroid.
2010-11-03 20:33:39 +01:00
Sebastian Ramacher
de0d0fb4e0 Implement wrap-around scrolling (closes #44)
Applied a modified version of raylu's patch. One can enable/disable wrap-around
scrolling with `set scroll_wrap 1/0". It's disabled per default.
2010-10-31 10:11:25 +01:00
Moritz Lipp
012e6de85a Check for ~ in save command 2010-10-30 22:57:39 +02:00
Moritz Lipp
77fb72f509 Reload fix when no file is opened 2010-10-30 10:08:57 +02:00
Moritz Lipp
da344ac8b9 Color window and viewport
Thanks to Strom
2010-10-25 14:10:10 +02:00
Moritz Lipp
da61a695bd Merge branch 'master' of pwmt.org:zathura 2010-10-18 20:16:51 +02:00