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
Moritz Lipp
b1144d9351
database-plain: File locking with unix sockets
2011-10-11 22:39:55 +02:00
Sebastian Ramacher
84ae796405
Merge branch 'develop' of pwmt.org:zathura into develop
2011-10-11 16:00:17 +02:00
Moritz Lipp
5ac40104a4
Add database-plain.c
2011-10-11 15:59:36 +02:00
Sebastian Ramacher
e6d1cffce0
Merge branch 'develop' of pwmt.org:zathura into develop
2011-10-10 23:49:31 +02:00
Moritz Lipp
8061236e4e
Added structure for plain database
2011-10-10 23:46:50 +02:00
Sebastian Ramacher
bbb08b17be
g_object_ref the print settings (as seen in the GTK+ documentation)
2011-10-10 19:58:48 +02:00
Moritz Lipp
b7d04a143d
Format README
2011-10-10 15:02:15 +02:00
Sebastian Ramacher
0848c39cde
no need to check for < 0
2011-10-09 00:35:52 +02:00
Sebastian Ramacher
9498b54fbc
introduce PLUGINDIR in config.mk which is used to determine the default look up path for plugins
2011-10-08 23:42:41 +02:00
Sebastian Ramacher
b693b8735b
make input of completion callbacks const
2011-10-08 23:23:56 +02:00
Sebastian Ramacher
4efecff654
make input of completion callbacks const char*
2011-10-08 23:19:28 +02:00
Sebastian Ramacher
d9d28bc544
+1/-1 when storing/loading pages
2011-10-06 18:33:54 +02:00
Sebastian Ramacher
b843331afc
+1/-1 when storing/loading pages
2011-10-06 18:33:23 +02:00
Sebastian Ramacher
b380f6f14b
implement bookmark create
2011-10-06 18:07:02 +02:00
Sebastian Ramacher
f00b3fcf03
implement bookmark open
2011-10-06 18:01:15 +02:00
Sebastian Ramacher
d047a36f6c
save file info on close
2011-10-06 17:57:26 +02:00
Sebastian Ramacher
88c4dd6bbe
load file info on start and jump to last seen page
2011-10-06 17:48:17 +02:00
Sebastian Ramacher
4f53b083ef
Revert change from 481e52fd and change path_max to long.
...
pathconf returns -1 on error and if there is no limit. A buffer with size
(size_t) -1 would be too large.
2011-10-05 14:20:59 +02:00
Moritz Lipp
6730160df0
Merge branch 'develop' of pwmt.org:zathura into develop
2011-10-05 13:49:45 +02:00
Moritz Lipp
8d3cc43bbe
Don't check if unsigned variable is less than zero
2011-10-05 13:49:40 +02:00
Pavel Borzenkov
b35a062e61
Fix 'make uninstall' command
...
We should remove zathura.pc from $PREFIX/lib/pkgconfig, not the
directory itself.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
2011-10-05 11:32:12 +02:00
Sebastian Ramacher
d02826c6df
update README
2011-10-04 16:41:51 +02:00
Sebastian Ramacher
794bee49ab
update deskopt file
2011-10-03 19:56:02 +02:00
Sebastian Ramacher
02e0c8b2d3
Fix a typo
2011-10-03 17:28:14 +02:00
Sebastian Ramacher
577d485747
create config/data directories if they don't exist
2011-10-03 17:19:55 +02:00
Sebastian Ramacher
2c5eb04f4f
Merge branch 'develop' of pwmt.org:zathura into develop
2011-10-03 17:13:40 +02:00
Sebastian Ramacher
4239d9652f
just do nothing if no document is open
2011-10-03 17:13:33 +02:00