Commit graph

14 commits

Author SHA1 Message Date
Pavel Borzenkov
8608823613 Get file info earlier
We need to know the document's 'scale' value earlier (before cairo
surfaces are created). Otherwise, cairo surfaces will be re-created and
wrong page will be rendered (since zoom doesn't preserve page number).

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-20 18:28:12 +02:00
Pavel Borzenkov
88be07272f There is no need to check return value of g_malloc()
It never returns NULL. If this function fails, the application is
terminated.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-20 18:27:56 +02:00
Sebastian Ramacher
bcfa016097 stupid me, I really did want to copy the string here 2011-10-17 09:37:22 +02:00
Sebastian Ramacher
942ebfde36 call g_key_file_load_from_data with dummy content if the file is empty 2011-10-16 20:28:58 +02:00
Sebastian Ramacher
712e4bd408 use the correct sorting function 2011-10-15 18:42:30 +02:00
Moritz Lipp
554e6eb70c database-plain: Lock file when reading 2011-10-14 01:24:42 +02:00
Moritz Lipp
b0007bf2de Use fcntl instead of socket to lock files 2011-10-14 01:04:06 +02:00
Moritz Lipp
094262c524 database-plain: Use GKeyFile for history as well 2011-10-12 12:43:36 +02:00
Moritz Lipp
2d4390f6d5 database-plain: Save and read bookmarks 2011-10-12 12:32:31 +02:00
Moritz Lipp
0bdbd6fa3b Immediately write history file 2011-10-12 11:45:10 +02:00
Moritz Lipp
186353111e Implement cb_zathura_db_watch_file 2011-10-11 23:43:30 +02:00
Moritz Lipp
a0aa0d44b7 Write and read file history 2011-10-11 23:18:21 +02:00
Moritz Lipp
b1144d9351 database-plain: File locking with unix sockets 2011-10-11 22:39:55 +02:00
Moritz Lipp
5ac40104a4 Add database-plain.c 2011-10-11 15:59:36 +02:00