Commit Graph

322 Commits

Author SHA1 Message Date
Sebastian Ramacher
c75eaf4c43 center the pages (Closes: #85, #87) 2012-01-13 17:39:46 +01:00
Sebastian Ramacher
b133a75717 pass sessionname 2011-12-13 19:59:59 +01:00
Sebastian Ramacher
f47775abf2 coding style 2011-12-11 19:30:36 +01:00
Sebastian Ramacher
fa6bc5a2e8 set default values before loading the first config file 2011-12-11 00:19:46 +01:00
Sebastian Ramacher
6c0a63943f fix the zooming issue 2011-12-10 10:19:14 +01:00
Sebastian Ramacher
ed724cc03d fix a 'format not a string literal and no format arguments' warning 2011-11-12 18:21:45 +01:00
Sebastian Ramacher
44360dea93 load config files from XDG_CONFIG_DIRS 2011-10-30 11:46:30 +01:00
Sebastian Ramacher
19c1b0195b use girara_split_path_array and girara_list_merge 2011-10-29 22:58:02 +02:00
Moritz Lipp
ab60625531 Update sc_toggle_fullscreen 2011-10-26 20:46:59 +02:00
Pavel Borzenkov
0476dbe930 Fix build warnings
The patch fixes the following build warnings:

zathura.c: In function ‘prepare_document_open_from_stdin’:
zathura.c:306: warning: implicit declaration of function ‘close’
zathura.c:314: warning: implicit declaration of function ‘read’
zathura.c:316: warning: implicit declaration of function ‘write’

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-24 08:09:24 +02:00
Sebastian Ramacher
d18f255bc0 use girara_list_find 2011-10-23 20:18:44 +02:00
Sebastian Ramacher
49b682e0a8 duplicate the string for stdin support 2011-10-23 17:34:10 +02:00
Sebastian Ramacher
911d84c908 update includes due to girara restructuring 2011-10-23 17:01:15 +02:00
Sebastian Ramacher
cd842a8f48 Don't break backwards compatibility of the settings names 2011-10-21 15:37:59 +02:00
Sebastian Ramacher
7a5dd056fd g_free return values of girara_setting_get 2011-10-21 15:32:50 +02:00
Sebastian Ramacher
98a1d2bc95 Reimplment 'load from stdin' 2011-10-21 15:00:22 +02:00
Sebastian Ramacher
27f275dd66 use g_malloc0 for zathura_document_info_t 2011-10-21 14:11:37 +02:00
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
ca885e5a27 fix 'zathura may be used uninittialized' 2011-10-16 23:10:20 +02:00
Sebastian Ramacher
de52bae4da close the document before destroying the widgets 2011-10-16 21:11:25 +02:00
Sebastian Ramacher
712e4bd408 use the correct sorting function 2011-10-15 18:42:30 +02:00
Sebastian Ramacher
14535b8f41 use a sorted list for bookmarks 2011-10-15 18:26:04 +02:00
Moritz Lipp
8061236e4e Added structure for plain database 2011-10-10 23:46:50 +02:00
Sebastian Ramacher
9498b54fbc introduce PLUGINDIR in config.mk which is used to determine the default look up path for plugins 2011-10-08 23:42:41 +02:00
Sebastian Ramacher
b843331afc +1/-1 when storing/loading pages 2011-10-06 18:33:23 +02:00
Sebastian Ramacher
d047a36f6c save file info on close 2011-10-06 17:57:26 +02:00
Sebastian Ramacher
88c4dd6bbe load file info on start and jump to last seen page 2011-10-06 17:48:17 +02:00
Sebastian Ramacher
02e0c8b2d3 Fix a typo 2011-10-03 17:28:14 +02:00
Sebastian Ramacher
577d485747 create config/data directories if they don't exist 2011-10-03 17:19:55 +02:00
Moritz Lipp
8bf7587baf Show document information 2011-10-01 23:29:40 +02:00
Moritz Lipp
9ec22cc1f6 Fix memory leak in zathura_free 2011-09-30 12:33:50 +02:00
Sebastian Ramacher
72ebb3bc13 fix page_set call in cb_index_row_activated 2011-09-29 18:39:40 +02:00
Sebastian Ramacher
b719e8701c get rid of warnings 2011-09-29 18:08:37 +02:00
Moritz Lipp
96e8348caa Prevent segfault in statusbar_page_number_update 2011-09-29 17:32:35 +02:00
Sebastian Ramacher
b34d21afaf implement content type support 2011-09-29 15:23:13 +02:00
Moritz Lipp
e47ff9ad47 Resolve GLib-Gobject-CRITICAL warnings 2011-09-21 09:46:54 +02:00
Moritz Lipp
a6268788c0 Resolve warnings caused by -Wextra 2011-09-21 00:46:03 +02:00
Moritz Lipp
e20f425128 Some style updates 2011-09-21 00:25:41 +02:00
Sebastian Ramacher
cf3fd3510b load bookmarks in document_open 2011-09-03 14:21:36 +02:00
Sebastian Ramacher
6f567a6264 some initial work on the sqlite database backend 2011-09-02 20:46:16 +02:00
Sebastian Ramacher
a6596fb908 initial bookmarks implementation 2011-09-01 15:43:34 +02:00
Sebastian Ramacher
87aa9b9a46 implement :write and :write! 2011-09-01 11:51:49 +02:00
Sebastian Ramacher
c445b0e679 implement :open 2011-08-31 00:08:33 +02:00
Pavel Borzenkov
caccb94c69 Fix ':close' command
Currently, zathura crashes while performing ':close' command with the
following error:

GThread-ERROR **: file gthread-posix.c: line 226
(g_cond_free_posix_impl): error 'Device or resource busy' during
'pthread_cond_destroy ((pthread_cond_t *) cond)'

The error is because 'render' thread holds condition variable while
waiting for new pages to render. This patch modifies zathura's code to
correctly kill render thread and free allocated resources when the
document is being closed.

NOTE: should be applied on top of "Allow changing of "pages-per-row"
variable at runtime" commit to avoid conflicts in the
'page_view_set_mode()' function.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2011-08-25 00:49:26 +02:00
Pavel Borzenkov
32d90379bc Allow changing of "pages-per-row" variable at runtime 2011-07-21 14:47:24 +02:00
Moritz Lipp
2a90a68ce8 Saner solution for the possible seg fault 2011-06-23 22:43:08 +02:00
Moritz Lipp
9d5cbcabb5 Fix possible segmentation fault 2011-06-23 22:40:48 +02:00
Moritz Lipp
7a0f870ff1 Fixed a possible memory leak 2011-05-09 10:53:09 +02:00
Moritz Lipp
00589a7295 Implemented recoloring 2011-04-30 13:27:27 +02:00