Commit graph

47 commits

Author SHA1 Message Date
Sebastian Ramacher
be717529c2 Remove function pointer casts
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-10-25 13:37:51 +02:00
Sebastian Ramacher
d913eda04a Simplify
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-06-24 19:46:09 +02:00
Sebastian Ramacher
09c7f540ab Refactor file monitor and add option to reload on SIGHUP
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-04-24 18:26:54 +02:00
Moritz Lipp
3bc1d819a4 Assign document object iff pages exist
Only saves the document object iff the opened document contains pages. In
addition a check is implemented such that the nrow calculation does not crash.
2016-03-09 16:21:48 +01:00
Sebastian Ramacher
6c7479c35e Make zathura_set_xid always available
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-26 18:59:24 +01:00
Sebastian Ramacher
eda1dcec63 Split out fileinfo save
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-02-24 22:57:01 +01:00
Sebastian Ramacher
e550ab66ee Reduce amount of leaked memory by libmagic
libmagic always leaks 48 bytes. Now we leak those bytes only once instead of
every content type detection.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 13:45:51 +01:00
Sebastian Ramacher
d1c38a703c Use GIO so we can later move the operation into the background
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 04:12:10 +01:00
Sebastian Ramacher
48cf3a22e0 Error out earlier
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:43:56 +01:00
Sebastian Ramacher
0683b78f9d Factor out some code in separate functions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:43:20 +01:00
Sebastian Ramacher
2da759149b Remove signal handler when closing
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-20 02:21:15 +01:00
Sebastian Ramacher
aecb648374 Fix issues from clang-tidy
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2016-01-09 15:28:10 +01:00
Sebastian Ramacher
14af953708 Merge remote-tracking branch 'carrotIndustries/develop' into develop 2015-12-09 00:30:32 +01:00
Lukas K
7dc30c9c14 move uri basename handling to zathura_document_open 2015-12-07 22:27:09 +01:00
Sebastian Ramacher
f1a5fb4544 Move jumplist code 2015-12-07 12:41:06 +01:00
Lukas K
337305457f display uri in statusbar/title 2015-12-07 01:13:59 +01:00
Sebastian Ramacher
73699b12ea Handle URIs in :open
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 21:04:24 +01:00
Sebastian Ramacher
d895ad32a1 White spaces
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 20:23:18 +01:00
Sebastian Ramacher
73e8eedc35 Remove unused parameter
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 19:12:51 +01:00
Sebastian Ramacher
3d14894549 Revert parts of c3337bdd80
We still need a copy for the plugins.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 17:38:14 +01:00
Sebastian Ramacher
c3337bdd80 Also handle file:// URIs
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-12-06 13:51:49 +01:00
Sebastian Ramacher
bf73069d14 Merge branch 'carrotIndustries/zathura-features/gio-download' into develop 2015-12-05 12:57:17 +01:00
Lukas K
1de8e2a568 add gio download 2015-12-02 22:56:47 +01:00
Sebastian Ramacher
138230c3cc Fix error checking
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-23 23:16:14 +01:00
Sebastian Ramacher
7f38470a9e Fix another invalid free
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-13 00:29:35 +01:00
Sebastian Ramacher
4a1852b02c Move static variables to zathura instance
Fixes another memory leak.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:32:59 +01:00
Sebastian Neuser
a9aa7e4ad2 Implement first page column list 2015-11-12 16:42:15 +01:00
Sebastian Neuser
7e2a18f7a8 Change type of first-page-column to char* / TEXT 2015-11-12 16:42:14 +01:00
Sebastian Ramacher
f41fc252bd Open password dialog after handling current input (fixes #468)
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-15 22:47:08 +02:00
Sebastian Ramacher
1652c2aab3 Auto start instance if --synctex-forward is passed but no instance exists 2015-10-07 22:55:35 +02:00
Sebastian Ramacher
ce7f53e5e9 Some clean up
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:22:15 +02:00
Sebastian Ramacher
013ac1f4b4 Fix a memory leak
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:18:33 +02:00
Sebastian Ramacher
05c44474d1 Simplify code a bit 2015-10-07 20:10:40 +02:00
Sebastian Ramacher
6a676cc5b5 Make get_formatted_filename static
It's only used in zathura.c

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:10:32 +02:00
Sidharth Kapur
2b73bfb6bd Use more glib functions
Also, check file_path_len >= home_len
2015-10-06 23:31:15 -05:00
Sidharth Kapur
93531c3eff Use g_strdup instead of malloc+strcpy 2015-10-05 15:59:31 -05:00
Sidharth Kapur
8bc9aa8af7 Fix memory leak, use girara_get_home_directory 2015-10-05 15:49:04 -05:00
Sidharth Kapur
7991618d25 Implement tilde feature for statusbar as well 2015-10-05 10:37:25 -05:00
Sidharth Kapur
1be84c6c3b Use glib malloc instead of malloc 2015-10-05 10:21:54 -05:00
Sidharth Kapur
7c3417bbe9 Remove unnecessary retrieval of settings 2015-10-01 17:12:04 -05:00
Sidharth Kapur
0c81a47eff Use tilde-substitution in page number update 2015-10-01 17:10:47 -05:00
Sidharth Kapur
f1f65664da Add feature to show ~ instead of $HOME in title 2015-10-01 16:55:07 -05:00
Callum Burns
24c59c98de Fixed typo and changed warning to debug 2015-01-13 21:53:07 +00:00
Sebastian Ramacher
04d666f61d Fix various issues if database == NULL
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-15 03:37:41 +01:00
Sebastian Ramacher
0e72cbc19a Fix use-after-free issue
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-15 03:28:08 +01:00
Sebastian Ramacher
10f3da57c6 More GObject* fun
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-11-25 13:57:02 +01:00
Moritz Lipp
a1a0e47148 Begin to update build-system 2014-11-07 15:57:46 +01:00
Renamed from zathura.c (Browse further)