[gnome-builder] icons: work around scalable icon loading annoyances
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] icons: work around scalable icon loading annoyances
- Date: Thu, 8 Jan 2015 01:00:49 +0000 (UTC)
commit 841c961b59eadde1e17cb677d60bbd4632574313
Author: Christian Hergert <christian hergert me>
Date: Wed Jan 7 17:00:19 2015 -0800
icons: work around scalable icon loading annoyances
.../builder-split-tab-symbolic.symbolic.png | Bin 0 -> 206 bytes
.../builder-split-tab-symbolic.symbolic.png | Bin 0 -> 318 bytes
src/app/gb-application.c | 3 +++
src/resources/gnome-builder.gresource.xml | 3 +++
4 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/icons/hicolor/16x16/actions/builder-split-tab-symbolic.symbolic.png
b/data/icons/hicolor/16x16/actions/builder-split-tab-symbolic.symbolic.png
new file mode 100644
index 0000000..5458404
Binary files /dev/null and b/data/icons/hicolor/16x16/actions/builder-split-tab-symbolic.symbolic.png differ
diff --git a/data/icons/hicolor/32x32/actions/builder-split-tab-symbolic.symbolic.png
b/data/icons/hicolor/32x32/actions/builder-split-tab-symbolic.symbolic.png
new file mode 100644
index 0000000..70cce4c
Binary files /dev/null and b/data/icons/hicolor/32x32/actions/builder-split-tab-symbolic.symbolic.png differ
diff --git a/src/app/gb-application.c b/src/app/gb-application.c
index 5937423..9541610 100644
--- a/src/app/gb-application.c
+++ b/src/app/gb-application.c
@@ -249,6 +249,9 @@ gb_application_register_theme_overrides (GbApplication *application)
ENTRY;
+ gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (),
+ "/org/gnome/builder/icons/");
+
/* Set up a handler to load our custom css for Adwaita.
* See https://bugzilla.gnome.org/show_bug.cgi?id=732959
* for a more automatic solution that is still under discussion.
diff --git a/src/resources/gnome-builder.gresource.xml b/src/resources/gnome-builder.gresource.xml
index 89ace69..6baf12e 100644
--- a/src/resources/gnome-builder.gresource.xml
+++ b/src/resources/gnome-builder.gresource.xml
@@ -7,6 +7,9 @@
<file>editor/uncrustify/uncrustify.c.cfg</file>
<file>gtk/menus.ui</file>
+
+ <file
alias="icons/16x16/actions/builder-split-tab-symbolic.symbolic.png">../../data/icons/hicolor/16x16/actions/builder-split-tab-symbolic.symbolic.png</file>
+ <file
alias="icons/32x32/actions/builder-split-tab-symbolic.symbolic.png">../../data/icons/hicolor/32x32/actions/builder-split-tab-symbolic.symbolic.png</file>
<file>js/marked.js</file>
<file>js/markdown-view.js</file>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]