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
Moritz Lipp
dd97387715
Began to implement dual/multiple view
2011-03-18 18:40:20 +01:00
Moritz Lipp
7d18faa452
Replace GtkWidget with zathura_image_buffer_t
2011-03-18 13:27:21 +01:00
Moritz Lipp
ef3944421b
Surround render call by tenter/tleave
2011-02-28 11:27:03 +08:00
Moritz Lipp
dbb304af35
Experimental implementation of sc_zoom
2011-02-10 04:28:36 +08:00
Moritz Lipp
5e7a774101
Updated coding standard
2011-02-09 19:44:48 +08:00
Moritz Lipp
e043e55b13
Use GCond for rendering thread
2011-01-26 19:06:57 +08:00
Moritz Lipp
056269fcae
Renamed search to render
2011-01-24 20:18:40 +08:00
Moritz Lipp
55eaca8ec7
Render thread
2011-01-24 19:43:39 +08:00
Moritz Lipp
22fea7d281
Began to set locks for rendering thread
2011-01-11 10:57:59 +01:00
Moritz Lipp
02f646751d
Moved render function
2011-01-07 09:07:02 +01:00