[gnome-internet-radio-locator] Add marker for WMBR-FM



commit 202a457fd22bf170eabdffd2969238fa00adf5b5
Author: Ole Aamot <ole gnome org>
Date:   Sun Feb 3 01:26:30 2019 +0100

    Add marker for WMBR-FM

 NEWS                                       |  1 +
 src/gnome-internet-radio-locator-markers.c | 11 +++++++++++
 src/gnome-internet-radio-locator.xml       |  2 +-
 3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/NEWS b/NEWS
index c5a1f9b..789fe19 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ GUI
        * src/gnome-internet-radio-locator.c: Set default center Stockholm
        * src/gnome-internet-radio-locator.c: Set undefined city label color
        * src/gnome-internet-radio-locator-markers.c: Add marker for Cambridge
+       * src/gnome-internet-radio-locator-markers.c: Add marker for WMBR-FM
        * src/gnome-internet-radio-locator-markers.c: Add marker for Tampere
        * src/gnome-internet-radio-locator-markers.c: Add marker for Warsaw
 
diff --git a/src/gnome-internet-radio-locator-markers.c b/src/gnome-internet-radio-locator-markers.c
index 72a9e7c..b3c5b1e 100644
--- a/src/gnome-internet-radio-locator-markers.c
+++ b/src/gnome-internet-radio-locator-markers.c
@@ -210,6 +210,17 @@ create_marker_layer (G_GNUC_UNUSED ChamplainView *view, ChamplainPathLayer **pat
   /* champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker)); */
   g_signal_connect(CHAMPLAIN_LOCATION(marker), "button-press", G_CALLBACK(marker_function), station);
   marker = champlain_label_new_from_file ("icons/emblem-generic.png", NULL);
+  station = g_strdup("WMBR-FM, Cambridge, Massachusetts\n<span size=\"small\">WHRB</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), &city_color);
+  champlain_label_set_text_color (CHAMPLAIN_LABEL (marker), &text_color);
+  champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 42.3617430, -71.0839082);
+  champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
+  champlain_marker_animate_in(CHAMPLAIN_MARKER (marker));
+  /* champlain_path_layer_add_node (*path, CHAMPLAIN_LOCATION (marker)); */
+  g_signal_connect(CHAMPLAIN_LOCATION(marker), "button-press", G_CALLBACK(marker_function), station);
+  marker = champlain_label_new_from_file ("icons/emblem-generic.png", NULL);
   station = g_strdup("Cambridge, United Kingdom\n<span size=\"small\">Cam FM</span>");
   champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
   champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
diff --git a/src/gnome-internet-radio-locator.xml b/src/gnome-internet-radio-locator.xml
index 00e22a5..5defa58 100644
--- a/src/gnome-internet-radio-locator.xml
+++ b/src/gnome-internet-radio-locator.xml
@@ -1076,7 +1076,7 @@ Behind the scenes we rely on our fantastic technical, musical and promotional te
   </station>
   <station band="88.1FM" id="wmbr" lang="en" name="WMBR" rank="1.0" type="edu">
     <frequency>88.1 FM in Cambridge, Massachusetts</frequency>
-    <location>Cambridge, Massachusetts</location>
+    <location>WMBR-FM, Cambridge, Massachusetts</location>
     <description lang="en">WMBR is the MIT campus radio station. We broadcast on 88.1 FM between 20 and 24 
hours per day, 365 days a year. We transmit at 720 watts, effective radiated power from the top of the 
Eastgate Building in Kendall Square in Cambridge, Massachusetts. Our programming includes a wide range of 
music shows, public affairs programs and eclectic audio entertainment.</description>
     <stream mime="audio/mpeg" uri="http://wmbr.org:8000/hi"; codec="MPEG 1 Audio, Layer 3 (MP3)" 
samplerate="44100 Hz" channels="Stereo" bitrate="128 kbps" />
     <uri>http://wmbr.org/</uri>


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