Sebastian Ramacher
b2189277bb
Use g_strv_length
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-20 15:21:21 +01:00
Sebastian Ramacher
d7b06ca3fc
Require GTK+ 3.6
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-20 15:07:18 +01:00
Sebastian Ramacher
ff976d4854
Error handling
2015-11-20 14:57:47 +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 Ramacher
4f6bd04f23
Move MIN and MAX
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:15:45 +01:00
Sebastian Ramacher
108533804b
Same consts
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 23:14:25 +01:00
Sebastian Ramacher
596262bb43
Fix invalid free
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:54:21 +01:00
Sebastian Ramacher
876d35de94
Fix memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:32:36 +01:00
Sebastian Ramacher
599e61ccf1
Use g_strlcat
...
It has a sane API.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-12 22:28:52 +01:00
Sebastian Ramacher
43244a67d2
Merge remote-tracking branch 'haggl/feature/toggle_page_mode_improvement' into develop
2015-11-12 22:15:18 +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 Neuser
924b7e0e60
shortcuts.c: Fix code comments
2015-11-12 15:08:06 +01:00
Sebastian Ramacher
28d186c8bd
Remove unused imports
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:31:34 +01:00
Sebastian Ramacher
229ff0ad9a
Remove some extra allocations
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:26:56 +01:00
Sebastian Ramacher
2695a53bfc
CS
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-11-11 21:08:53 +01:00
Sebastian Ramacher
6d1e916a4f
Fix argument
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-20 22:01:51 +02: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
63e477fd41
Fix mutex clean up
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-11 22:28:09 +02:00
Sebastian Ramacher
083520cea6
Remove compat code for pre-2.32 glib
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:41:24 +02:00
Sebastian Ramacher
5c60ce4156
Get rid of embedded copy of libsynctex
...
TeXLive 2015 including libsynctex is out long enough.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 21:26:22 +02:00
Sebastian Ramacher
66b9870d76
Pass arguments to spawned processes ( fixes #504 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-08 00:05:16 +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
264aaed0bd
Factor out highlight_rects
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 22:55:35 +02:00
Sebastian Ramacher
0ab1147543
Factor out SyncTeX string parsing
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 22:53:48 +02:00
Sebastian Ramacher
80582c9079
Check return value
2015-10-07 21:33:51 +02:00
Sebastian Ramacher
08b341d4f8
Use correct type
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 21:11:39 +02:00
Sebastian Ramacher
fdd843e116
Fix memory leak
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-07 20:48:34 +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
Sebastian Ramacher
075924d108
Merge remote-tracking branch 'sid-kap/substitute_home_with_tilde' into develop
2015-10-07 20:06:52 +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
Sebastian Ramacher
f9d1d89bd4
Use the widget's display
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-10-05 21:14:54 +02: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
Sebastian Ramacher
7da7bcb4c1
Do not display recent files if there aren't any
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-26 23:38:10 +02:00
Sebastian Ramacher
5d490f6895
Fix sorting
2015-07-26 23:35:23 +02:00
Sebastian Ramacher
4f3b1b257b
Make show-recent both an option to show recent files and the maximum number to be shown
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-26 23:19:22 +02:00
Sebastian Ramacher
4e5ae52bc5
Display recent files in completion ( fixes #490 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 17:25:57 +02:00
Sebastian Ramacher
83fe96e814
Implement recent files
2015-07-24 17:20:17 +02:00
Sebastian Ramacher
6db534caea
Implement recent files support
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 17:19:58 +02:00
Sebastian Ramacher
47cd9b1895
List recent files
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-24 16:35:51 +02:00
Matthew hague
1cd609d33b
added bindings for ctrl-[/ctrl-c/esc and ctrl-j in index view
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-07-21 19:53:54 +02:00
Sebastian Ramacher
e7dce3e6d1
Merge remote-tracking branch 'haggl/feature/quit-in-index-mode' into develop
2015-05-08 18:36:31 +02:00
Sebastian Neuser
3c5e9e67ed
config.c: Add quit shortcut for index mode
2015-05-08 13:09:54 +02:00
MicheleSr
303277124b
replaced deprecated gdk_cursor_new()
...
replaced with gdk_cursor_new_for_display()
2015-04-28 23:32:50 +02:00
Sebastian Ramacher
0ed98dd959
Allow .dylib plugins on Mac OS X
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-04-10 16:03:49 +02:00
Lingzhu Xiang
c17c54c4a0
Fix dual page render breakge of adjust_window
...
When the page is set to adjust width to the window,
toggling dual page mode would break rendering because
sc_toggle_page_mode() did not update dimensions.
2015-02-05 17:37:40 -05:00
Sebastian Ramacher
12a9bf93ae
Demote info message to debug
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2015-01-20 21:43:47 +01:00
Moritz Lipp
676005ad99
Merge branch 'develop' of pwmt.org:zathura into develop
2015-01-20 21:38:10 +01:00
Moritz Lipp
cfc0c2aa7d
Don't free content_type before setting error message
2015-01-20 21:37:04 +01:00
Callum Burns
24c59c98de
Fixed typo and changed warning to debug
2015-01-13 21:53:07 +00:00
Moritz Lipp
c7d77a1030
Update documentation
2014-12-27 00:03:34 +01: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
5780a99291
Print target selection
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-12-08 00:31:47 +01:00
Moritz Lipp
8d71a755d6
Correct usage of boolean values in sc_search
...
This patch resolves memory issues caused by using g_value_set_boolean and an
incorrect type of the target variable.
Thanks to edd@openbsd.org
2014-11-29 19:38:27 +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
Sebastian Ramacher
9dc02b6425
Make sure that we pass GObject* everywhere
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-11-25 13:51:27 +01:00
Moritz Lipp
a1a0e47148
Begin to update build-system
2014-11-07 15:57:46 +01:00