Commit Graph

657 Commits

Author SHA1 Message Date
Sebastian Ramacher
19c1b0195b use girara_split_path_array and girara_list_merge 2011-10-29 22:58:02 +02:00
Moritz Lipp
133b127319 Skip '.' and '..' 2011-10-29 13:09:16 +02:00
Pavel Borzenkov
e3b80cb37f 'make uninstall' should remove /usr/include/zathura
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-28 23:42:49 +02:00
Moritz Lipp
ab60625531 Update sc_toggle_fullscreen 2011-10-26 20:46:59 +02:00
Moritz Lipp
5acf8da4de Merge branch 'develop' of pwmt.org:zathura into develop 2011-10-24 10:51:09 +02:00
Pavel Borzenkov
744320b8fa Fix build warning
The patch fixes the following warning:

document.c: In function ‘guess_type’:
document.c:174: warning: implicit declaration of function ‘read’

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-24 08:39:39 +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
c06a1a4df7 use BUFSIZ 2011-10-23 19:27:57 +02:00
Sebastian Ramacher
7ca688a964 read file blockwise to determine filetype 2011-10-23 19:26:06 +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
Moritz Lipp
98cc73d3e4 Added cmd_search 2011-10-22 16:35:38 +02:00
Sebastian Ramacher
37189ece79 remove zathura_list_t 2011-10-22 00:11:42 +02:00
Sebastian Ramacher
f7e9c3d770 remove duplicated code 2011-10-21 23:40:16 +02:00
Sebastian Ramacher
4d7de4bb9f fix logic 2011-10-21 23:36:17 +02:00
Sebastian Ramacher
719557ff9e always close the plugin handle 2011-10-21 23:33:18 +02:00
Sebastian Ramacher
cd842a8f48 Don't break backwards compatibility of the settings names 2011-10-21 15:37:59 +02:00
Sebastian Ramacher
d31a350f23 readd scroll-step 2011-10-21 15:34:06 +02:00
Sebastian Ramacher
7a5dd056fd g_free return values of girara_setting_get 2011-10-21 15:32:50 +02:00
Sebastian Ramacher
2572c2a5cc Guess the content from the actual data if it fails to do so from the file name alone. 2011-10-21 15:00:57 +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
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
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
843a0513e2 return even earlier 2011-10-19 09:46:48 +02:00
Pavel Borzenkov
721d566881 Fix warnings reported by Clang Analyzer
Clang Analyzer reports:

shortcuts.c:238:11: warning: Value stored to 'new_value' during its initialization is never read
  gdouble new_value   = value;
          ^             ~~~~~

completion.c:163:50: warning: Null pointer passed as an argument to a 'nonnull' parameter
    if (input_length <= strlen(bookmark->id) && !strncmp(input, bookmark->id, input_length)) {
                                                 ^       ~~~~~

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-19 09:44:51 +02:00
Sebastian Ramacher
10fbf29125 adopt to girara changes 2011-10-17 11:16:14 +02:00
Sebastian Ramacher
bcfa016097 stupid me, I really did want to copy the string here 2011-10-17 09:37:22 +02:00
Sebastian Ramacher
ca885e5a27 fix 'zathura may be used uninittialized' 2011-10-16 23:10:20 +02:00
Sebastian Ramacher
2a35825247 fix 'path may be used unitialized' 2011-10-16 23:01:25 +02:00
Sebastian Ramacher
de52bae4da close the document before destroying the widgets 2011-10-16 21:11:25 +02:00
Sebastian Ramacher
370aa11c4b call gtk_main_quit in cb_destroy 2011-10-16 20:59:25 +02:00
Sebastian Ramacher
942ebfde36 call g_key_file_load_from_data with dummy content if the file is empty 2011-10-16 20:28:58 +02:00
Sebastian Ramacher
712e4bd408 use the correct sorting function 2011-10-15 18:42:30 +02:00
Sebastian Ramacher
09041f7d78 Merge branch 'develop' of pwmt.org:zathura into develop 2011-10-15 18:26:09 +02:00
Sebastian Ramacher
14535b8f41 use a sorted list for bookmarks 2011-10-15 18:26:04 +02:00
Moritz Lipp
554e6eb70c database-plain: Lock file when reading 2011-10-14 01:24:42 +02:00
Moritz Lipp
b0007bf2de Use fcntl instead of socket to lock files 2011-10-14 01:04:06 +02:00
Moritz Lipp
908e06de16 Fix sc_goto 2011-10-13 12:15:21 +02:00
Moritz Lipp
09d2ee0926 Merge branch 'develop' of pwmt.org:zathura into develop 2011-10-12 16:18:54 +02:00
Moritz Lipp
9f1a3c6c62 Some style updates 2011-10-12 16:18:40 +02:00
Sebastian Ramacher
d94c6a9cac display a sorted list of bookmarks 2011-10-12 14:40:52 +02:00
Moritz Lipp
f384c912a0 Fix cc_bookmarks 2011-10-12 12:49:52 +02:00
Moritz Lipp
094262c524 database-plain: Use GKeyFile for history as well 2011-10-12 12:43:36 +02:00
Moritz Lipp
2d4390f6d5 database-plain: Save and read bookmarks 2011-10-12 12:32:31 +02:00
Moritz Lipp
0bdbd6fa3b Immediately write history file 2011-10-12 11:45:10 +02:00
Moritz Lipp
186353111e Implement cb_zathura_db_watch_file 2011-10-11 23:43:30 +02:00
Moritz Lipp
a0aa0d44b7 Write and read file history 2011-10-11 23:18:21 +02:00