[gnome-boxes/wip/jimmac/nightly-icon] icon: Pick the right icon based on application_id
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/jimmac/nightly-icon] icon: Pick the right icon based on application_id
- Date: Wed, 4 Sep 2019 08:59:55 +0000 (UTC)
commit 828d3302ed4668184c1ad0a20ced9773587bfed6
Author: Felipe Borges <felipeborges gnome org>
Date: Wed Sep 4 10:56:40 2019 +0200
icon: Pick the right icon based on application_id
With the introduction of Nightly icons, we can make it much easier
for users to differentiate visually an unstable instance of Boxes
from its stable counterpart.
By having two icons named consistently with our application_ids
(org.gnome.Boxes.svg for stable and org.gnome.BoxesDevel for unstable),
we just need to set the icon path to be variabled based on the
application_id.
Fixes #408
data/meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/data/meson.build b/data/meson.build
index 460e17bb..0814380e 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1,6 +1,6 @@
icondir = join_paths('icons', 'hicolor', 'scalable', 'apps')
install_data(
- join_paths(icondir, 'org.gnome.Boxes.svg'),
+ join_paths(icondir, ('@0@.svg').format(application_id)),
install_dir: join_paths(data_dir, icondir),
rename: '@0@.svg'.format(application_id)
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]