Commit 3c5d8d89 authored by Ole Aamot's avatar Ole Aamot

Set color for clutter labels

parent 16452bd0
......@@ -112,6 +112,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Berkeley, California\n<span size=\"xx-small\">KALX</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.873093, -122.303769);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -121,6 +122,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Boston, Massachusetts\n<span size=\"xx-small\">WMBR</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 42.3604823,-71.0595678);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -130,6 +132,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Cape Town, South Africa\n<span size=\"xx-small\">UCT Radio</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),-33.928992,18.417396);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -139,6 +142,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Chicago, Illinois\n<span size=\"xx-small\">WHPK</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 41.8755546, -87.6244212);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -149,6 +153,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Dublin, Ireland\n<span size=\"xx-small\">UWS Radio</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 53.3497645,-6.2602732);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
/* champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker)); */
......@@ -158,6 +163,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Guatemala City, Guatemala\n<span size=\"xx-small\">Radio Universidad</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),14.6417889,-90.5132239);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -167,6 +173,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Honolulu, Hawaii\n<span size=\"xx-small\">Hawaii Public Radio</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),21.304547,-157.8556764);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -176,6 +183,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Houston, Texas\n<span size=\"xx-small\">Coog Radio, University of Houston</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),29.7589382,-95.3676974);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -185,6 +193,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("London, United Kingdom\n<span size=\"xx-small\">Imperial College Radio</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),51.5073219,-0.1276474);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -194,6 +203,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Los Angeles, California\n<span size=\"xx-small\">KXSC</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),34.1430079,-118.14176172581);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -203,6 +213,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("México City, México\n<span size=\"xx-small\">Radio UNAM</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),19.647012,-101.22900565);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -213,6 +224,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Moscow, Russia\n<span size=\"xx-small\">Echo of Moscow</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 55.4792046, 37.3273304);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -223,6 +235,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Newcastle, Australia\n<span size=\"xx-small\">2NURFM</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),-32.9272881,151.7812534);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -232,6 +245,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("New York City, New York\n<span size=\"xx-small\">WKCR</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 40.7306458, -73.9866136);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -241,6 +255,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Oslo, Norway\n<span size=\"xx-small\">NRK Sport</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),59.9132694,10.7391112);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -250,6 +265,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Paris, France\n<span size=\"xx-small\">Radio Campus Paris</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),48.8566101,2.3514992);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -259,6 +275,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Phoenix, Arizona\n<span size=\"xx-small\">KASC</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker),33.4485866,-112.0773456);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -268,6 +285,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("San Francisco, California\n<span size=\"xx-small\">SomaFM</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.7792808,-122.4192363);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -277,6 +295,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Seattle, Washington\n<span size=\"xx-small\">KSUB</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 47.6038321,-122.3300624);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -286,6 +305,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Stanford, California\n<span size=\"xx-small\">KZSU</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.4248398,-122.1677058);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -295,6 +315,7 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
station = g_strdup("Washington, District of Columbia\n<span size=\"xx-small\">WAMU</span>");
champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 38.8949549, -77.0366456);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
......@@ -302,15 +323,18 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
g_signal_connect(CHAMPLAIN_LOCATION(marker), "button-press", G_CALLBACK(marker_function), station);
#if 0
marker = champlain_label_new_from_file ("icons/emblem-important.png", NULL);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.873093, -122.303769);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
marker = champlain_point_new ();
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.873093, -122.303769);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
marker = champlain_label_new_from_file ("icons/emblem-favorite.png", NULL);
champlain_label_set_draw_background (CHAMPLAIN_LABEL (marker), FALSE);
champlain_label_set_color (CHAMPLAIN_LABEL (marker), &orange);
champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 37.873093, -122.303769);
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment