[gnome-maps] Add symbolic icons to icon theme
- From: Jonas Danielsson <jonasdn src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] Add symbolic icons to icon theme
- Date: Fri, 10 Oct 2014 17:49:30 +0000 (UTC)
commit 1d08fcb67b966ad5a92d0568d5ee29c9c718528a
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Mon Sep 22 10:35:40 2014 +0200
Add symbolic icons to icon theme
Add the icons to our icon theme and use 'icon-name' property
instead of 'pixbuf' property. This will make recoloring work.
https://bugzilla.gnome.org/show_bug.cgi?id=737068
data/icons/Makefile.am | 6 ++++++
... hicolor_apps_16x16_layers-button-symbolic.svg} | 0
... => hicolor_apps_16x16_route-bike-symbolic.svg} | 0
...> hicolor_apps_16x16_route-button-symbolic.svg} | 0
...g => hicolor_apps_16x16_route-car-symbolic.svg} | 0
...color_apps_16x16_route-pedestrian-symbolic.svg} | 0
... hicolor_apps_16x16_route-transit-symbolic.svg} | 0
src/gnome-maps.data.gresource.xml | 6 ------
src/main-window.ui | 4 ++--
src/sidebar.ui | 6 +++---
10 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am
index ca072fb..946da4a 100644
--- a/data/icons/Makefile.am
+++ b/data/icons/Makefile.am
@@ -25,6 +25,12 @@ private_icons = \
hicolor_apps_16x16_maps-point-end.svg \
hicolor_apps_16x16_maps-point-start-symbolic.svg \
hicolor_apps_16x16_maps-point-end-symbolic.svg \
+ hicolor_apps_16x16_layers-button-symbolic.svg \
+ hicolor_apps_16x16_route-button-symbolic.svg \
+ hicolor_apps_16x16_route-pedestrian-symbolic.svg \
+ hicolor_apps_16x16_route-transit-symbolic.svg \
+ hicolor_apps_16x16_route-bike-symbolic.svg \
+ hicolor_apps_16x16_route-car-symbolic.svg \
hicolor_apps_32x32_maps-pin.svg \
hicolor_apps_22x22_user-location.png \
$(NULL)
diff --git a/data/icons/layers-button.svg b/data/icons/hicolor_apps_16x16_layers-button-symbolic.svg
similarity index 100%
rename from data/icons/layers-button.svg
rename to data/icons/hicolor_apps_16x16_layers-button-symbolic.svg
diff --git a/data/icons/route-bike-symbolic.svg b/data/icons/hicolor_apps_16x16_route-bike-symbolic.svg
similarity index 100%
rename from data/icons/route-bike-symbolic.svg
rename to data/icons/hicolor_apps_16x16_route-bike-symbolic.svg
diff --git a/data/icons/route-button.svg b/data/icons/hicolor_apps_16x16_route-button-symbolic.svg
similarity index 100%
rename from data/icons/route-button.svg
rename to data/icons/hicolor_apps_16x16_route-button-symbolic.svg
diff --git a/data/icons/route-car-symbolic.svg b/data/icons/hicolor_apps_16x16_route-car-symbolic.svg
similarity index 100%
rename from data/icons/route-car-symbolic.svg
rename to data/icons/hicolor_apps_16x16_route-car-symbolic.svg
diff --git a/data/icons/route-pedestrian-symbolic.svg
b/data/icons/hicolor_apps_16x16_route-pedestrian-symbolic.svg
similarity index 100%
rename from data/icons/route-pedestrian-symbolic.svg
rename to data/icons/hicolor_apps_16x16_route-pedestrian-symbolic.svg
diff --git a/data/icons/route-transit-symbolic.svg b/data/icons/hicolor_apps_16x16_route-transit-symbolic.svg
similarity index 100%
rename from data/icons/route-transit-symbolic.svg
rename to data/icons/hicolor_apps_16x16_route-transit-symbolic.svg
diff --git a/src/gnome-maps.data.gresource.xml b/src/gnome-maps.data.gresource.xml
index b9beff2..b6b2dc8 100644
--- a/src/gnome-maps.data.gresource.xml
+++ b/src/gnome-maps.data.gresource.xml
@@ -21,12 +21,6 @@
<file alias="zoom-out-insensitive.png">../data/media/zoom-out-insensitive.png</file>
<file alias="maptype-aerial.png">../data/media/maptype-aerial.png</file>
<file alias="maptype-street.png">../data/media/maptype-street.png</file>
- <file alias="route-car-symbolic">../data/icons/route-car-symbolic.svg</file>
- <file alias="route-pedestrian-symbolic">../data/icons/route-pedestrian-symbolic.svg</file>
- <file alias="route-transit-symbolic">../data/icons/route-transit-symbolic.svg</file>
- <file alias="route-bike-symbolic">../data/icons/route-bike-symbolic.svg</file>
- <file alias="layers-button.svg">../data/icons/layers-button.svg</file>
- <file alias="route-button">../data/icons/route-button.svg</file>
<file alias="direction-sharpleft">../data/media/direction-sharpleft.png</file>
<file alias="direction-left">../data/media/direction-left.png</file>
<file alias="direction-slightleft">../data/media/direction-slightleft.png</file>
diff --git a/src/main-window.ui b/src/main-window.ui
index c1ba10e..3fcf81d 100644
--- a/src/main-window.ui
+++ b/src/main-window.ui
@@ -49,7 +49,7 @@
<object class="GtkImage" id="layers-button-image">
<property name="visible">True</property>
<property name="icon-size">1</property>
- <property name="pixbuf">layers-button.svg</property>
+ <property name="icon-name">layers-button-symbolic</property>
</object>
</child>
</object>
@@ -68,7 +68,7 @@
<object class="GtkImage" id="toggle-sidebar-button-image">
<property name="visible">True</property>
<property name="icon-size">1</property>
- <property name="pixbuf">route-button</property>
+ <property name="icon-name">route-button-symbolic</property>
</object>
</child>
</object>
diff --git a/src/sidebar.ui b/src/sidebar.ui
index 0a220cb..1ee5e67 100644
--- a/src/sidebar.ui
+++ b/src/sidebar.ui
@@ -31,7 +31,7 @@
<object class="GtkImage" id="mode-pedestrian-image">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="pixbuf">route-pedestrian-symbolic</property>
+ <property name="icon-name">route-pedestrian-symbolic</property>
</object>
</child>
<style>
@@ -53,7 +53,7 @@
<object class="GtkImage" id="mode-bike-image">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="pixbuf">route-bike-symbolic</property>
+ <property name="icon-name">route-bike-symbolic</property>
</object>
</child>
<style>
@@ -76,7 +76,7 @@
<object class="GtkImage" id="mode-car-image">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="pixbuf">route-car-symbolic</property>
+ <property name="icon-name">route-car-symbolic</property>
</object>
</child>
<style>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]