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
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