Commit Graph

28 Commits

Author SHA1 Message Date
Sebastian Ramacher
cff05ac10e Replace some GdkColors with GdkRGBA
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-12-01 15:47:28 +01:00
Sebastian Ramacher
c918c590ee Rename zathura_page_cache_add
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-10-20 16:06:15 +02:00
Sebastian Ramacher
5df5357fb0 Finish moving of the page cache
Add two more signals to ZathuraRenderRequest to notify pages if they are cached
or not. This allows us to move some logic away from
cb_view_vadjutment_value_changed to more appropriate places.

ZathuraPageWidget will now release the surface if
* it gets the signal that the page is no longer cached and the page is
  invisible,
* the page is not cached and the render request is aborted.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-10-19 17:45:12 +02:00
Sebastian Ramacher
e7cd4e5f8c Move page cache to ZathuraRenderer
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-10-18 20:00:04 +02:00
Sebastian Ramacher
16fbefa5cf Abort requests if the page becomes invisible
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-30 18:59:47 +02:00
Sebastian Ramacher
07005886f8 Sort requests based on last view time again
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-30 17:50:34 +02:00
Sebastian Ramacher
8a9bd7f512 We don't need zathura
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-30 15:43:43 +02:00
Sebastian Ramacher
7d5863ae1d Clean up includes
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-30 15:05:00 +02:00
Sebastian Ramacher
b02d3d4b8f Move recolor state to the renderer
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-24 00:07:32 +02:00
Sebastian Ramacher
10115db62f Rewrite render thread as request based system
ZathuraRenderer is a thread pool rendering the pages. Every page widget holds a
ZathuraRenderRequest instance to request its page to be rendered. This object
can also be used to abort the request in case the page is not visible anymore.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2013-08-21 18:32:18 +02:00
Sebastian Ramacher
290eefde5c Use a lock to lock the render thread for printing. 2012-06-03 22:06:57 +02:00
Sebastian Ramacher
f28decccc1 Revert "Render pages for printing in render thread."
This reverts commit 8271419222.
2012-06-03 21:54:10 +02:00
Sebastian Ramacher
8271419222 Render pages for printing in render thread.
This needs some looking in the render thread.
2012-06-01 20:56:55 +02:00
Sebastian Ramacher
2a0422b5e1 Reimplement render thread using GThreadPool 2012-03-02 17:51:48 +01:00
Moritz Lipp
34b6fffc33 Update documentation 2012-02-08 15:30:13 +01:00
Moritz Lipp
f8f4345540 Update documentation 2012-01-22 21:57:18 +01:00
Sebastian Ramacher
911d84c908 update includes due to girara restructuring 2011-10-23 17:01:15 +02:00
Moritz Lipp
c3ad7faf1a Use cairo to render page 2011-09-29 12:35:52 +02:00
Moritz Lipp
8bcb79ea94 Update 2011-04-18 21:22:35 +02:00
Sebastian Ramacher
0aa9264732 Merge branch 'render' of pwmt.org:zathura into render
Conflicts:
	render.h
2011-04-18 18:21:02 +02:00
Sebastian Ramacher
f57fe5dfde update document.c/.h 2011-04-18 18:19:41 +02:00
Moritz Lipp
2eed47a314 Updated render.c/render.h 2011-04-18 18:00:08 +02:00
Moritz Lipp
7629a30a27 Register document plugin and free registered plugins 2011-03-05 19:46:05 +01:00
Moritz Lipp
dbb304af35 Experimental implementation of sc_zoom 2011-02-10 04:28:36 +08:00
Moritz Lipp
4c19c798f7 Add function documentation 2011-02-08 14:51:53 +08:00
Moritz Lipp
e043e55b13 Use GCond for rendering thread 2011-01-26 19:06:57 +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