Commit Graph

349 Commits

Author SHA1 Message Date
Moritz Lipp
8219d48eba Reload correct page when re-opening known file 2012-02-20 20:13:53 +01:00
Moritz Lipp
b6f1868e7f Fix automatic file reloading 2012-02-20 20:07:24 +01:00
Moritz Lipp
b8470a5317 Set current page number in page_set 2012-02-20 12:40:25 +01:00
Moritz Lipp
394fbd934d Update style 2012-02-17 00:43:01 +01:00
Sebastian Ramacher
0251fb75dd use gdk_threads_add_idle instead of g_idle_add 2012-02-16 16:18:12 +01:00
Sebastian Ramacher
e7f0e30d99 only call sc_adjust_window if the allocation of the window really changed 2012-02-14 15:53:04 +01:00
Sebastian Ramacher
2f38126a7a make the recolor colors changeable too 2012-02-14 14:53:45 +01:00
Sebastian Ramacher
9d04a7bfcf make highlight colors configurable during runtime 2012-02-14 14:46:19 +01:00
Sebastian Ramacher
69b5cb0be5 more GTK+3 support 2012-02-14 13:53:26 +01:00
Sebastian Ramacher
16336cf065 Merge branch 'develop' of pwmt.org:zathura into develop 2012-02-13 12:44:44 +01:00
Sebastian Ramacher
a4fab8c368 some more work to be compatible with GTK+3 2012-02-13 12:43:22 +01:00
Moritz Lipp
b59e5686ec Update style 2012-02-12 16:35:33 +01:00
Moritz Lipp
851ef7cd7b Adjust on resize / Adjust on open 2012-02-09 01:46:51 +01:00
Sebastian Ramacher
bd8097d5b2 don't add +1 to current page number 2012-02-08 23:38:22 +01:00
Sebastian Ramacher
e513cb5579 store rotation in history 2012-02-08 22:23:45 +01:00
Sebastian Ramacher
c6403ec097 wrap gtk_adjustment_set_value 2012-02-08 21:34:53 +01:00
Moritz Lipp
2669ed43a8 Renamed buffer_changed function 2012-02-08 15:19:51 +01:00
Moritz Lipp
33e37b12e4 Resolve possible null pointer dereference 2012-02-07 20:05:24 +01:00
Moritz Lipp
21a65cbe34 Rename PageViewWidget to PageWidget 2012-02-07 18:30:46 +01:00
Sebastian Ramacher
460b517998 drop unnecessary calls 2012-02-07 17:32:03 +01:00
Sebastian Ramacher
623678ee9c force cb_vadjusment_value_changed to be called at least once 2012-02-07 16:38:21 +01:00
Sebastian Ramacher
57291989c5 calculate visible pages and update current page number 2012-02-07 14:56:58 +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
083a40f447 adopt to changes from girara 2012-02-03 22:15:29 +01:00
Sebastian Ramacher
269b784c3a fork if --fork is given (Closes: #52)
Thanks to egl209 for the patch.
2012-02-01 17:40:26 +01:00
Moritz Lipp
8ddbb158e3 Implement test suite with check 2012-01-28 19:54:44 +01:00
Moritz Lipp
3311038681 Begin to draw sc_follow results 2012-01-19 00:49:08 +01:00
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