Sebastian Ramacher
85019b5312
Forbid VLAs
2018-03-04 11:14:01 +01:00
Sebastian Ramacher
5baa31b83d
Avoid code duplication
...
We can use girara_list_foreach here and avoid the repeated
GIRARA_LIST_FOREACH_BODY overhead.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-26 23:14:55 +01:00
Sebastian Ramacher
90533f6773
Free iterator before list
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-26 22:24:43 +01:00
Sebastian Ramacher
1ebf8f76f8
Set default window icon ( fixes : #207 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 22:27:56 +01:00
Sebastian Ramacher
3d4d8068bb
Add icon
2018-02-25 22:11:37 +01:00
Sebastian Ramacher
84a9861bbb
Run update-po
2018-02-25 20:12:43 +01:00
Sebastian Ramacher
aa1a15dc92
Extend description
2018-02-25 20:12:37 +01:00
Sebastian Ramacher
5800974cea
Fix paths
2018-02-25 20:05:11 +01:00
Sebastian Ramacher
56ec53a618
Add provides
2018-02-25 20:04:34 +01:00
Sebastian Ramacher
9f482ab202
Integrate appdata file into i18n infrastructure
2018-02-25 19:59:36 +01:00
Sebastian Ramacher
75b95655e1
Add translation
2018-02-25 19:54:51 +01:00
Sebastian Ramacher
11d2239d19
Convert to desktop-application
2018-02-25 19:54:12 +01:00
Sebastian Ramacher
c02652dff0
Update copyright years
2018-02-25 19:50:39 +01:00
Sebastian Ramacher
49b55d648b
Validate desktop file
2018-02-25 19:49:08 +01:00
Sebastian Ramacher
c239e84ddb
IDs are supposed to follow reverse DNS
2018-02-25 19:48:52 +01:00
Sebastian Ramacher
2f98ecde0d
Translate desktop file via i18n infrastructure
2018-02-25 18:39:03 +01:00
Sebastian Ramacher
354dfc35a6
Run update-po
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 17:57:05 +01:00
Sebastian Ramacher
d5fb34dc97
Add translations for nl
2018-02-25 17:56:48 +01:00
Sebastian Ramacher
96d3561fc9
Remove deprecated scale
...
All plugins have been fixed.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 11:10:22 +01:00
Sebastian Ramacher
2106afb933
Extend building instructions
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-25 10:48:09 +01:00
Sebastian Ramacher
f82162a5ca
Mark scale as deprecated
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-23 16:34:05 +01:00
Sebastian Ramacher
2f1938694e
Merge remote-tracking branch 'knuesel/feature/physical-size' into develop
2018-02-23 16:32:05 +01:00
Jeremie Knuesel
f1ebe9e5d5
Merge remote-tracking branch 'upstream/develop' into feature/physical-size
2018-02-23 15:47:52 +01:00
Jeremie Knuesel
063b234a2a
Listen on configure event for PPI changes
...
This allows detection of a PPI change due to the window moving to
another monitor
2018-02-23 15:33:23 +01:00
Jeremie Knuesel
8e3f056121
If new PPI is significantly different, yes render and refresh
2018-02-23 15:26:43 +01:00
Jeremie Knuesel
1e170f0cab
Indentation fix
2018-02-23 15:02:06 +01:00
Sebastian Ramacher
dfc31a3fe1
Use zathura-version.h ( fixes #708 )
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-21 11:34:37 +01:00
Sebastian Ramacher
278eeb2077
Make nohlsearch shortcut available
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:26:53 +01:00
Sebastian Ramacher
9dde3d9d61
Implement nohlsearch shortcut
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:26:38 +01:00
Sebastian Ramacher
d3e06883f1
Include girara build and runtime version
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 23:18:30 +01:00
Sebastian Ramacher
1348a46633
Update build instructions
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 22:41:58 +01:00
Sebastian Ramacher
38d3608908
Clean up
2018-02-20 21:43:31 +01:00
Sebastian Ramacher
102325a41e
Generate version.h as zathura-version.h
...
This avoid confusions between girara's and zathura's version.h.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-20 21:42:43 +01:00
Sebastian Ramacher
f037679776
Merge branch 'feature/meson' into develop
2018-02-20 20:24:34 +01:00
Jeremie Knuesel
af90d4050d
Store monitors-changed handler for disconnection
2018-02-16 16:42:33 +01:00
Jeremie Knuesel
8b93be9471
Add scale/zoom union in link target
...
scale is now deprecated and plugins should use zoom instead
2018-02-15 18:07:20 +01:00
Sebastian Ramacher
a230bcced0
Remove empty line
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-15 12:09:03 +01:00
Sebastian Ramacher
bfdd4be4b2
Avoid explicit iterator
...
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2018-02-15 12:09:03 +01:00
Sebastian Ramacher
324d88100d
Mark functions as const
2018-02-15 12:09:03 +01:00
Jeremie Knuesel
09d8a37c8e
Add zoom column to sqlite database if missing
2018-02-13 20:00:56 +01:00
Jeremie Knuesel
4f3837c372
Remove Cairo 1.14 version checks
...
They're no longer needed since GTK+ 3.22 depends on Cairo >= 1.14
2018-02-12 15:18:18 +01:00
Jeremie Knuesel
1a12214a8c
Bump GTK+ to 3.22
2018-02-12 14:50:14 +01:00
Jeremie Knuesel
f6dd3682a8
Fix compilation for GTK+ < 3.22
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
55055758fa
Assume PPI=100 (typical value) if info unavailable
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
b4eca29d3a
Replace monitor "dpi" with "ppi"
...
This should avoid some confusion with the font DPI
2018-02-12 11:16:49 +01:00
Jeremie Knuesel
d625c0d9bd
Distinguish zoom and scale, always apply DPI correction on scale
...
Replace scale with zoom in most cases. Scale means pixels per point, as
before. The zoom is the screen-size / document-size ratio: a zoom of 1
means that the document should have the same size on screen as on paper.
This fixes many issues with the previous DPI changes, e.g. with link and
search rectangles.
2018-02-12 11:15:03 +01:00
Jeremie Knuesel
9bfefaf905
Check GTK+ version for monitor methods
2018-02-11 15:13:01 +01:00
Jeremie Knuesel
250547cabd
Use DPI to scale documents to physical size
2018-02-11 15:11:43 +01:00
Jeremie Knuesel
fc5a344dc1
Use signals to detect DPI change
2018-02-11 15:11:43 +01:00
Jeremie Knuesel
553a8ff428
Store monitor DPI in document structure
2018-02-11 15:11:37 +01:00