[libchamplain] Add icons for marker demo as they have been removed from system directories by some distros



commit 6d963c5e1ab95173285e8d24c27c071bcc477fd2
Author: JiÅÃ Techet <techet gmail com>
Date:   Sat Sep 17 02:27:13 2011 +0200

    Add icons for marker demo as they have been removed from system directories by some distros

 demos/icons/emblem-favorite.png  |  Bin 0 -> 1092 bytes
 demos/icons/emblem-generic.png   |  Bin 0 -> 1577 bytes
 demos/icons/emblem-important.png |  Bin 0 -> 1330 bytes
 demos/markers-vala.vala          |    6 +++---
 demos/markers.c                  |    6 +++---
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/demos/icons/emblem-favorite.png b/demos/icons/emblem-favorite.png
new file mode 100644
index 0000000..d7bbb6b
Binary files /dev/null and b/demos/icons/emblem-favorite.png differ
diff --git a/demos/icons/emblem-generic.png b/demos/icons/emblem-generic.png
new file mode 100644
index 0000000..fc9d1fb
Binary files /dev/null and b/demos/icons/emblem-generic.png differ
diff --git a/demos/icons/emblem-important.png b/demos/icons/emblem-important.png
new file mode 100644
index 0000000..db0fb60
Binary files /dev/null and b/demos/icons/emblem-important.png differ
diff --git a/demos/markers-vala.vala b/demos/markers-vala.vala
index 2c8a9c8..3a3c2c1 100644
--- a/demos/markers-vala.vala
+++ b/demos/markers-vala.vala
@@ -35,7 +35,7 @@ class DemoLayer : Champlain.MarkerLayer
 
     try {
       marker = new Champlain.Label.from_file (
-          "/usr/share/icons/gnome/24x24/emblems/emblem-generic.png");
+          "icons/emblem-generic.png");
     } catch (GLib.Error e) {
       GLib.warning ("%s", e.message);
     }
@@ -45,7 +45,7 @@ class DemoLayer : Champlain.MarkerLayer
 
     try {
       marker = new Champlain.Label.from_file (
-          "/usr/share/icons/gnome/24x24/emblems/emblem-important.png");
+          "icons/emblem-important.png");
     } catch (GLib.Error e) {
       GLib.warning ("%s", e.message);
     }
@@ -54,7 +54,7 @@ class DemoLayer : Champlain.MarkerLayer
 
     try {
       marker = new Champlain.Label.from_file (
-          "/usr/share/icons/gnome/24x24/emblems/emblem-favorite.png");
+          "icons/emblem-favorite.png");
     } catch (GLib.Error e) {
       GLib.warning ("%s", e.message);
     }
diff --git a/demos/markers.c b/demos/markers.c
index 9243753..2d08886 100644
--- a/demos/markers.c
+++ b/demos/markers.c
@@ -43,13 +43,13 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
   champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
   champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
 
-  marker = champlain_label_new_from_file ("/usr/share/icons/gnome/24x24/emblems/emblem-generic.png", NULL);
+  marker = champlain_label_new_from_file ("icons/emblem-generic.png", NULL);
   champlain_label_set_text (CHAMPLAIN_LABEL (marker), "New York");
   champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 40.77, -73.98);
   champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
   champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
 
-  marker = champlain_label_new_from_file ("/usr/share/icons/gnome/24x24/emblems/emblem-important.png", NULL);
+  marker = champlain_label_new_from_file ("icons/emblem-important.png", NULL);
   champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 47.130885,
       -70.764141);
   champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
@@ -61,7 +61,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
   champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
   champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
 
-  marker = champlain_label_new_from_file ("/usr/share/icons/gnome/24x24/emblems/emblem-favorite.png", NULL);
+  marker = champlain_label_new_from_file ("icons/emblem-favorite.png", NULL);
   champlain_label_set_draw_background (CHAMPLAIN_LABEL (marker), FALSE);
   champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 45.41484,
       -71.918907);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]