Commit Graph

263 Commits

Author SHA1 Message Date
Jeremy Attali
bf265b69f1 docs(readme): update Arch installation path 2021-02-21 00:30:39 -05:00
Jeremy Attali
5301aebd5e fix(i18n): properly set translation domain during layout init
Most of the `i18n` boilerplate was there, but the app still needed to
know what domain to look for. This must happen after initialization of
the `GtkBuilder` and before loading the glade file.

The domain is simply the `mo` file packaged with the app and usually
located under:

```
/usr/share/locale/$LANG/LC_MESSAGES/$APP.mo
```

Once again thanks to @maximbaz for pointing it out.

Closes #92
2021-02-21 00:25:16 -05:00
Jeremy Attali
cacb2830e4 feat(i18n): add french translations 2021-02-20 22:58:55 -05:00
Jeremy Attali
7fd552e8c4 fix(po): update GETTEXT_PACKAGE value with project name 2021-02-20 22:58:55 -05:00
Jeremy Attali
724d7864f0 docs(readme): add i18n instructions to update po files
Refs #92
2021-02-20 22:58:55 -05:00
lelgenio
d80c361489 feat(draw): draw shape from center if holding control 2021-02-20 22:57:24 -05:00
Jeremy Attali
616c6a61dd revert: chore(readme): prettify readme file
This reverts commit 8b5d7b09e8.
2021-02-20 18:43:01 -05:00
Jeremy Attali
376c56e48e docs(readme): update release section 2021-02-20 18:31:57 -05:00
Jeremy Attali
91985c7994 fix(release): properly check sha256 remote content
We need to verify the sources from github match our local content.
We do this by building our own version of the git release (using `git
archive`) and checking the SHA-256 checksums against the local and
remote.

After that it's safe to sign the remote `tar.gz` and upload the
signature file to the release.

One caveat is that if Github upates their git release commmand, this
script will break. We'll worry about it when that happens.

This drops support for `zip` signature. I wish there was a way to
prevent the zip source code when doing a new release.

Closes #90
2021-02-20 16:25:21 -05:00
Jeremy Attali
78ed552039
chore(release): 1.3.1 2021-02-20 12:54:26 -05:00
Jeremy Attali
57c707a8ab docs(readme): add instructions to build i18n 2021-02-18 22:39:16 -05:00
Jeremy Attali
8b5d7b09e8 chore(readme): prettify readme file 2021-02-17 21:25:28 -05:00
Jeremy Attali
439a3f5ddc chore(script): add sign-post-release helper script 2021-02-17 21:24:40 -05:00
Jeremy Attali
25c8c1683e chore(release): 1.3.0 2021-02-17 19:45:00 -05:00
Jeremy Attali
1bb534fc7c chore(notification): remove libnotify dependency and notifications
Closes #58
2021-02-16 23:21:20 -05:00
Jeremy Attali
46e5854b3c fix(ui): commit state before copying or saving
Closes #52
2021-02-15 21:39:45 -05:00
Jeremy Attali
3db1b13ae9 refactor(swappy): rename surface variables for clarity 2021-02-15 20:44:01 -05:00
Jeremy Attali
7635a2ed4a chore(application): safe free window before allocation 2021-02-15 20:44:01 -05:00
Jeremy Attali
553daa1295 chore(pixbuf): remove dead code 2021-02-15 20:44:01 -05:00
Jeremy Attali
27fcecedae fix(blur): optimize blur to only render after commit 2021-02-15 20:44:01 -05:00
Jeremy Attali
c2e9462e89 chore(blur): remove unused scale variables 2021-02-15 20:44:01 -05:00
Jeremy Attali
9b72571596 fix(ui): adjust rendering surface with proper scaling
Closes #54
2021-02-15 20:44:01 -05:00
Jeremy Attali
ecbcf2b80c chore(swappy): remove unused state variable 2021-02-15 20:44:01 -05:00
Jeremy Attali
c04ed63d26 fix(blur): rgb24 is properly handled 2021-02-15 15:05:19 -05:00
Jeremy Attali
6bfb36734c chore(git): format with new lines at eof 2021-02-15 14:01:43 -05:00
Jeremy Attali
5bcffdbb01 fix(ui): compute window sizes and buffers properly
Compute maximum width and height of area container based on monitor size
and fix image ratio based on appropriate values.

Note that this will lower the resolution of the final image.

Closes #56
2021-02-15 13:53:33 -05:00
Gustavo Costa
4a0eb82369 feat(i18n): add brazilian portuguese translations 2021-02-15 13:38:48 -05:00
Jeremy Attali
c24e56a165 fix(application): unlink temp file coming from stdin
Stop mutating `file_str`, use a dedicated `temp_file_str` to store the
location of the temporary file when using swappy with `-f -` option.

Closes #80
2021-02-13 19:32:22 -05:00
Jeremy Attali
22432c4dea chore(vscode): use clang 11 path 2021-02-13 19:32:22 -05:00
snakedye
eb53e5c2b2
fix(notification): notification shows the image icon 2021-01-08 16:18:14 -05:00
Jeremy Attali
a7fda1f998
docs(readme): add support for Void Linux 2021-01-08 16:14:39 -05:00
apiraino
597f0055b9 feat(cli): add configure options for filename save 2020-12-12 13:03:38 -05:00
Jeremy Attali
a931acb2cf fix(clipboard): wl-copy mimetype should be png
Closes #68
2020-12-01 19:46:28 -05:00
Brodi
b4be847635 feat(i18n): add german translations 2020-11-16 15:55:10 -05:00
Oğuz Ersen
c8419da7fa feat(i18n): add turkish translations 2020-10-29 15:13:47 -04:00
Jeremy Attali
f3a4ae9009
chore(release): 1.2.1 2020-07-11 12:17:09 -04:00
Jeremy Attali
b41f824585 chore(license): happy new year 2020-07-10 23:19:47 -04:00
Jeremy Attali
717ab0c2d1 fix(text): properly handle utf-8 chars
UTF-8 characters are now handled porperly. Also re-worked some helper
functions with UTF-8 in mind.

I secretly no real C developers will look at this. I might have to ask
for witness protection.

Closes #43
2020-07-08 21:48:31 -04:00
Michael Vetter
79614a55b7 docs(readme): add opensuse install
swappy will be in the official repos for openSUSE Tumbleweed.
2020-07-08 12:50:53 -04:00
Max Verevkin
de88325a7e
docs(man): swap description and synopsis sections 2020-07-07 21:32:44 -04:00
Jeremy Attali
59d60dbaf1
chore(release): 1.2.0 2020-07-05 14:54:03 -04:00
Jeremy Attali
fd3ab976b5 chore(build): remove rt dependency 2020-07-01 22:10:00 -04:00
Jan Beich
606ce38914 chore(config): unbreak -Werror on 32-bit architectures
../src/config.c:119:11: error: format specifies type 'long' but the argument has type 'guint64' (aka 'unsigned long long') [-Werror,-Wformat]
          line_size);
          ^~~~~~~~~
/usr/local/include/glib-2.0/glib/gmessages.h:339:32: note: expanded from macro 'g_warning'
                               __VA_ARGS__)
                               ^~~~~~~~~~~
../src/config.c:136:11: error: format specifies type 'long' but the argument has type 'guint64' (aka 'unsigned long long') [-Werror,-Wformat]
          text_size);
          ^~~~~~~~~
/usr/local/include/glib-2.0/glib/gmessages.h:339:32: note: expanded from macro 'g_warning'
                               __VA_ARGS__)
                               ^~~~~~~~~~~
2 errors generated.
2020-06-26 08:45:44 -04:00
Jan Beich
772c60523e chore(build): allow downstream force enable/disable libnotify 2020-06-26 08:45:44 -04:00
Jan Beich
1c8022c9a9 chore(build): look for gio via pkg-config
meson.build:45:0: ERROR: C library 'gio-2.0' not found
2020-06-26 08:45:44 -04:00
Jeremy Attali
cf3d7a5283 feat(i18n): add translatable desktop file
- Includes the first swappy logo, yay !
- Includes a desktop file that registers mime type for png files

Closes #35
2020-06-23 23:32:33 -04:00
Jeremy Attali
5b3c8aded8 feat(i18n): setup i18n for swappy
This makes swappy more i18n friendly through the use of `gettext` with
`meson` i18n module.
2020-06-23 23:32:33 -04:00
Jeremy Attali
cab6a0ee7a refactor(ci): rename main into build 2020-06-23 23:11:17 -04:00
Jeremy Attali
24d30d8106 chore(ci): add commitlint for pull_requests 2020-06-23 23:11:17 -04:00
Jeremy Attali
177c2d45fa
chore(release): 1.1.0 2020-06-22 23:05:18 -04:00