Moritz Lipp
97247f41ca
Unhitch zathura_t from document_t/page_t/plugin_manager_t
2012-04-03 09:02:45 +02:00
Moritz Lipp
ab4c364e56
Update document information plugin api
2012-03-30 18:24:00 +02:00
Moritz Lipp
334b4fbb95
Introduce and use zathura_document wrapper functions
2012-03-27 21:59:35 +02:00
Moritz Lipp
4ade2c1472
Introduced plugin.h and plugin-api.h
2012-03-27 13:30:04 +02:00
Moritz Lipp
5bf32f33a5
Rename page_get_id to page_get_index
2012-03-26 15:30:58 +02:00
Moritz Lipp
efc108fbe2
Introduced page.h
2012-03-26 14:44:56 +02:00
Sebastian Ramacher
07d02d934a
We only need to lock the widget update.
2012-03-20 01:30:02 +01:00
Sebastian Ramacher
66bc63f5a7
Rename page_widget to page-widget.
2012-03-16 14:37:54 +01:00
Moritz Lipp
9265c9473a
Add 'recolor' setting
2012-03-14 17:33:35 +01:00
Sebastian Ramacher
2a0422b5e1
Reimplement render thread using GThreadPool
2012-03-02 17:51:48 +01:00
Sebastian Ramacher
7f6ad25e02
Fix memory leak in render_free
2012-03-02 17:34:13 +01:00
Sebastian Ramacher
8c10161acf
fix invalid read in render thread
2012-02-14 16:01:50 +01:00
Sebastian Ramacher
e513cb5579
store rotation in history
2012-02-08 22:23:45 +01:00
Moritz Lipp
5b54bebc1b
Check zathura_page_render return value correctly
2012-02-08 01:08:23 +01:00
Moritz Lipp
21a65cbe34
Rename PageViewWidget to PageWidget
2012-02-07 18:30:46 +01:00
Sebastian Ramacher
aea5024ce3
add argument printing to zathura_page_render
2012-02-07 15:10:58 +01:00
Sebastian Ramacher
12fd8450fa
some documentation
2012-02-05 11:32:32 +01:00
Sebastian Ramacher
a1cdb48921
Create a page view widget ( Closes : #90 ).
...
Add a widget derived from GtkDrawingArea that handles the drawing. It
automaticaly requests rerendering of the page if necessary (i.e on a scroll and
rotate).
This should solve all the rendering issues.
2012-02-05 11:24:34 +01:00
Sebastian Ramacher
3df59895cd
CS
2012-02-03 22:32:11 +01:00
Sebastian Ramacher
083a40f447
adopt to changes from girara
2012-02-03 22:15:29 +01:00
Sebastian Ramacher
3b5d29d52b
Add option to disable rendering of 'Loading ...'
2012-02-01 17:30:43 +01:00
Moritz Lipp
3311038681
Begin to draw sc_follow results
2012-01-19 00:49:08 +01:00
Moritz Lipp
97cad5a7a4
Round values up when calculating width/height
2011-12-11 01:45:27 +01:00
Sebastian Ramacher
864dc5bd1d
rotate in expose-event, not in render
2011-12-10 11:44:27 +01:00
Sebastian Ramacher
6c0a63943f
fix the zooming issue
2011-12-10 10:19:14 +01:00
Sebastian Ramacher
911d84c908
update includes due to girara restructuring
2011-10-23 17:01:15 +02:00
Pavel Borzenkov
9dd8067873
Make sure we don't pass garbage to g_mutex_free()
...
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-20 18:28:22 +02:00
Sebastian Ramacher
0848c39cde
no need to check for < 0
2011-10-09 00:35:52 +02:00
Moritz Lipp
bd458048c3
Include math.h in render.c
2011-09-29 18:51:24 +02:00
Sebastian Ramacher
f78b79ec17
scale cairo surface
2011-09-29 18:49:43 +02:00
Moritz Lipp
c3ad7faf1a
Use cairo to render page
2011-09-29 12:35:52 +02:00
Moritz Lipp
a6268788c0
Resolve warnings caused by -Wextra
2011-09-21 00:46:03 +02:00
Sebastian Ramacher
30dd00937b
rotate in render
2011-09-01 19:18:29 +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
Moritz Lipp
00589a7295
Implemented recoloring
2011-04-30 13:27:27 +02:00
Moritz Lipp
4763624dab
Display current page number in statusbar
2011-04-27 19:57:49 +02:00
Moritz Lipp
1806b04786
Initialize lock before creating the render thread
2011-04-26 16:39:40 +02:00
Moritz Lipp
5c5df5bf82
Fixed rendering
2011-04-19 21:42:18 +02:00
Sebastian Ramacher
a415666cc1
zathura_page_t: replace rendered by visible
2011-04-19 18:33:28 +02:00
Moritz Lipp
07cc456ae9
Fixed rendering for mupdf/poppler backend
2011-04-19 16:24:19 +02:00
Moritz Lipp
5151b84a6f
Update render function
2011-04-19 16:03:42 +02:00
Sebastian Ramacher
7dd5c0d567
resize
2011-04-19 15:39:10 +02:00
Sebastian Ramacher
4eef03c201
invalidate rect
2011-04-19 15:26:26 +02:00
Sebastian Ramacher
45afe89e87
invalidate rect
2011-04-19 15:23:55 +02:00
Moritz Lipp
fdf0bd5649
Save surface temporary in page_t
2011-04-18 22:59:59 +02:00
Moritz Lipp
8bcb79ea94
Update
2011-04-18 21:22:35 +02:00
Moritz Lipp
4a8f4df2db
Updated commands/render/shortcuts/utils for zathura object
2011-04-18 18:29:50 +02:00
Moritz Lipp
2eed47a314
Updated render.c/render.h
2011-04-18 18:00:08 +02:00
Moritz Lipp
801fe03009
Changed the strucure a bit
2011-03-20 02:53:24 +01:00
Moritz Lipp
c5491675aa
Update rendering
2011-03-20 02:09:04 +01:00