Commit Graph

281 Commits

Author SHA1 Message Date
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
Moritz Lipp
ebd6605adf Began to implement the printing dialog 2011-04-29 00:28:19 +02:00
Moritz Lipp
40ae60ea42 Updated page_set function 2011-04-27 20:32:57 +02:00
Moritz Lipp
4763624dab Display current page number in statusbar 2011-04-27 19:57:49 +02:00
Moritz Lipp
68bda8550f Initialize girara after parsing the configuration 2011-04-25 17:41:45 +02:00
Moritz Lipp
9f5430e449 Handle 0 pages-per-row 2011-04-25 16:54:21 +02:00
Sebastian Ramacher
48f04fc587 fix a typo 2011-04-20 16:58:08 +02:00
Moritz Lipp
5e4d584382 Merge branch 'render' into girara
Conflicts:
	Makefile
	config.c
	config.h
	document.c
	ft/djvu/Makefile
	ft/pdf-mupdf/Makefile
	ft/pdf-poppler/Makefile
	render.c
	zathura.c
2011-04-19 21:54:24 +02:00
Moritz Lipp
5c5df5bf82 Fixed rendering 2011-04-19 21:42:18 +02:00
Sebastian Ramacher
09328e8e89 use GtkTable for page layout 2011-04-19 20:41:16 +02:00
Moritz Lipp
dc7c3d86eb Calculate page offset 2011-04-19 19:24:03 +02:00
Moritz Lipp
5151b84a6f Update render function 2011-04-19 16:03:42 +02:00
Sebastian Ramacher
298c9d2c7a readd tabbed support 2011-04-19 14:46:08 +02:00
Sebastian Ramacher
b2fc17207e Make plugin path configurable
* We don't fail if we can't load a plugin. There can be anything.
* Reintroduce the command line parser from glib.
* Use fstatat as it is more reliable than d_type from dirent.
2011-04-19 00:36:56 +02:00
Moritz Lipp
8bcb79ea94 Update 2011-04-18 21:22:35 +02:00
Moritz Lipp
536862900e Updated document.c/zathura.c 2011-04-18 18:23:34 +02:00
Sebastian Ramacher
0d5a06ce29 free plugins 2011-04-18 18:21:33 +02:00
Sebastian Ramacher
f57fe5dfde update document.c/.h 2011-04-18 18:19:41 +02:00
Moritz Lipp
daa523aaf5 Updated callbacks.c 2011-04-18 17:37:03 +02:00
Moritz Lipp
8960b6e83d Updated zathura.h/zathura.c 2011-04-18 17:27:49 +02:00
Moritz Lipp
cfb2580b7b Return value for create_blank_pages 2011-04-18 17:03:08 +02:00
Moritz Lipp
15d51567aa Use girara debug functions 2011-04-02 23:40:57 +02:00
Moritz Lipp
3335e71ed8 Load configuration files 2011-04-01 09:55:37 +02:00
Moritz Lipp
801fe03009 Changed the strucure a bit 2011-03-20 02:53:24 +01:00
Moritz Lipp
e5d0b6bac0 Remove wrong threads_enter/leave 2011-03-20 01:43:02 +01:00
Moritz Lipp
dd97387715 Began to implement dual/multiple view 2011-03-18 18:40:20 +01:00
Moritz Lipp
52377b994d Plugin register mechanism 2011-03-05 21:00:41 +01:00
Moritz Lipp
7629a30a27 Register document plugin and free registered plugins 2011-03-05 19:46:05 +01:00
Moritz Lipp
31027cbaad Began to implement the index view 2011-02-10 11:33:28 +08:00
Moritz Lipp
5e7a774101 Updated coding standard 2011-02-09 19:44:48 +08:00
Moritz Lipp
4c19c798f7 Add function documentation 2011-02-08 14:51:53 +08:00
Moritz Lipp
55eaca8ec7 Render thread 2011-01-24 19:43:39 +08:00
Moritz Lipp
02f646751d Moved render function 2011-01-07 09:07:02 +01:00
Moritz Lipp
f2b24f75b5 Show page border 2011-01-06 09:40:56 +01:00
Moritz Lipp
88fd3e555a Render first page immediatly 2010-12-29 12:26:47 +01:00
Moritz Lipp
0398692705 Detect which page should be rendered 2010-12-29 11:46:13 +01:00
Moritz Lipp
3f961f6c18 Continuous basics 2010-12-28 09:47:09 +01:00
Moritz Lipp
eebdc8dece Get all pages 2010-12-28 00:47:41 +01:00
Moritz Lipp
19637bcd54 djvu support rotation 2010-12-27 09:44:28 +01:00
Moritz Lipp
14d744befe [testing] Use GdkPixbuf instead of cairo 2010-12-27 09:07:17 +01:00
Moritz Lipp
726766549e Fix segmentation fault if no file has been opened 2010-12-26 11:10:10 +01:00
Moritz Lipp
ca35db2dc9 Added drawing area 2010-12-26 01:52:17 +01:00