[gnome-internet-radio-locator: 1/2] Add NRK P1 Buskerud (Buskerud, Norge) Add NRK P1 Rogaland (Rogaland, Norge)



commit 63bfa39f2f5fa8035a1b7ed52a9a653ca718b883
Author: Ole Aamot <ole gnome org>
Date:   Thu Jan 2 13:10:33 2020 +0100

    Add NRK P1 Buskerud (Buskerud, Norge)
    Add NRK P1 Rogaland (Rogaland, Norge)

 src/gnome-internet-radio-locator-markers.c | 22 ++++++++++++++++++++++
 src/gnome-internet-radio-locator.xml       | 12 ++++++++++++
 2 files changed, 34 insertions(+)
---
diff --git a/src/gnome-internet-radio-locator-markers.c b/src/gnome-internet-radio-locator-markers.c
index 0ed0cba..20bbbb9 100644
--- a/src/gnome-internet-radio-locator-markers.c
+++ b/src/gnome-internet-radio-locator-markers.c
@@ -231,6 +231,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("Buskerud, Norge\n<span size=\"small\">NRK P1 Buskerud</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_c_color);
+       champlain_label_set_text_color (CHAMPLAIN_LABEL (marker), &text_color);
+       champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 60.2497876, 8.96278676790604);
+       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("WBUR, Boston, Massachusetts\n<span size=\"small\">WBUR</span>");
        champlain_label_set_text (CHAMPLAIN_LABEL (marker), station);
        champlain_label_set_use_markup (CHAMPLAIN_LABEL (marker), TRUE);
@@ -605,6 +616,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("Rogaland, Norge\n<span size=\"small\">NRK P1 Rogaland</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_d_color);
+       champlain_label_set_text_color (CHAMPLAIN_LABEL (marker), &text_color);
+       champlain_location_set_location (CHAMPLAIN_LOCATION (marker), 58.93631375, 5.80587864304024);
+       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("San Francisco, California\n<span size=\"small\">SomaFM</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 b664645..f888c78 100644
--- a/src/gnome-internet-radio-locator.xml
+++ b/src/gnome-internet-radio-locator.xml
@@ -2,6 +2,18 @@
 <?xml-stylesheet type="text/xsl" 
href="https://people.gnome.org/~ole/gnome-internet-radio-locator/gnome-internet-radio-locator.xsl"; ?>
 <!DOCTYPE gnome_internet_radio_locator SYSTEM "gnome-internet-radio-locator-0.1.dtd">
 <gnome_internet_radio_locator version="2.5.0">
+  <station band="Online" id="p1_buskerud" lang="no" name="NRK P1 Buskerud" rank="1.0" type="gov">
+    <location>Buskerud, Norge</location>
+    <description lang="no">NRK P1 Buskerud</description>
+    <stream mime="audio/mpeg" uri="http://lyd.nrk.no/nrk_radio_p1_buskerud_aac_h"; codec="MPEG-1 Layer 3 
(MP3)" samplerate="48000 Hz" bitrate="125 kbps" />
+    <uri>https://www.nrk.no/buskerud/</uri>
+  </station>
+  <station band="Online" id="p1_rogaland" lang="no" name="NRK P1 Rogaland" rank="1.0" type="gov">
+    <location>Rogaland, Norge</location>
+    <description lang="no">NRK P1 Rogaland</description>
+    <stream mime="audio/mpeg" uri="http://lyd.nrk.no/nrk_radio_p1_rogaland_aac_h"; codec="MPEG-1 Layer 3 
(MP3)" samplerate="48000 Hz" bitrate="125 kbps" />
+    <uri>https://www.nrk.no/rogaland/</uri>
+  </station>
   <station band="92.2FM" id="anr" lang="dk" name="ANR" rank="1.0" type="com">
     <frequency uri="http://www.anr.dk/";>FM 87.6 in Aalborg C, Denmark</frequency>
     <frequency uri="http://www.anr.dk/";>FM 88.5 in Nørlund, Denmark</frequency>


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