-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Merge pull request #60 from luleyleo/gtk-help-overlay
Replace custom shortcuts overlay with GTKs built-in help overlay.
Showing
15 changed files
with
74 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
.cargo/ | ||
*.pdb | ||
**/*.rs.bk | ||
debug/ | ||
target/ | ||
vendor/ | ||
vendor.tar | ||
debian/* | ||
!debian/changelog | ||
!debian/control | ||
!debian/copyright | ||
!debian/install | ||
!debian/rules | ||
!debian/source | ||
|
||
build/ | ||
repo/ | ||
flatpak/ | ||
flatpak-build/ | ||
.flatpak-builder/ | ||
|
||
assets/locale/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
vim.env.APP_ID = "de.leopoldluley.Clapgrep.Devel" | ||
vim.env.GRESOURCES_BUNDLE = vim.fn.getcwd() .. "/build/resources/resources.gresource" | ||
|
||
return {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
install_data( | ||
'icons'/ 'hicolor' / 'scalable' / 'apps' / '@[email protected]'.format(application_id), | ||
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps' | ||
'icons' / 'hicolor' / 'scalable' / 'apps' / '@[email protected]'.format(application_id), | ||
install_dir: iconsdir / 'hicolor' / 'scalable' / 'apps', | ||
) | ||
|
||
subdir('resources') | ||
|
||
# Desktop file | ||
desktop_conf = configuration_data() | ||
desktop_conf.set('icon', application_id) | ||
|
@@ -11,22 +13,20 @@ desktop_file = i18n.merge_file( | |
input: configure_file( | ||
input: '@[email protected]'.format(base_id), | ||
output: '@BASENAME@', | ||
configuration: desktop_conf | ||
configuration: desktop_conf, | ||
), | ||
output: '@[email protected]'.format(application_id), | ||
po_dir: podir, | ||
install: true, | ||
install_dir: datadir / 'applications' | ||
install_dir: datadir / 'applications', | ||
) | ||
|
||
# Validate Desktop file | ||
if desktop_file_validate.found() | ||
test( | ||
'validate-desktop', | ||
desktop_file_validate, | ||
args: [ | ||
desktop_file.full_path() | ||
], | ||
args: [desktop_file.full_path()], | ||
depends: desktop_file, | ||
) | ||
endif | ||
|
@@ -39,21 +39,20 @@ appdata_file = i18n.merge_file( | |
input: configure_file( | ||
input: '@[email protected]'.format(base_id), | ||
output: '@BASENAME@', | ||
configuration: appdata_conf | ||
configuration: appdata_conf, | ||
), | ||
output: '@[email protected]'.format(application_id), | ||
po_dir: podir, | ||
install: true, | ||
install_dir: datadir / 'metainfo' | ||
install_dir: datadir / 'metainfo', | ||
) | ||
|
||
# Validate Appdata | ||
if appstream_util.found() | ||
test( | ||
'validate-appdata', appstream_util, | ||
args: [ | ||
'validate', '--nonet', appdata_file.full_path() | ||
], | ||
'validate-appdata', | ||
appstream_util, | ||
args: ['validate', '--nonet', appdata_file.full_path()], | ||
depends: appdata_file, | ||
) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
help_overlay = custom_target( | ||
'help-overlay', | ||
input: ['help-overlay.blp'], | ||
output: ['help-overlay.ui'], | ||
command: [ | ||
blueprint_compiler, | ||
'compile', | ||
'--output', 'assets/resources/help-overlay.ui', | ||
'@INPUT@', | ||
], | ||
) | ||
|
||
clapgrep_resources = gnome.compile_resources( | ||
'resources', | ||
'resources.xml', | ||
gresource_bundle: true, | ||
source_dir: meson.current_build_dir(), | ||
dependencies: [help_overlay], | ||
)[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/de/leopoldluley/Clapgrep/"> | ||
<file compressed="true" preprocess="xml-stripblanks" alias="gtk/help-overlay.ui">help-overlay.ui</file> | ||
</gresource> | ||
</gresources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters