[gnome-internet-radio-locator] Display station uri in status bar



commit 746f968668b176c93503d2e917d343977c759a48
Author: Ole Aamot <ole aamotsoftware com>
Date:   Sun Feb 3 15:26:52 2019 +0100

    Display station uri in status bar

 src/gnome-internet-radio-locator-markers.c | 2 +-
 src/gnome-internet-radio-locator.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-internet-radio-locator-markers.c b/src/gnome-internet-radio-locator-markers.c
index d16ebc6..d4db3c4 100644
--- a/src/gnome-internet-radio-locator-markers.c
+++ b/src/gnome-internet-radio-locator-markers.c
@@ -89,7 +89,7 @@ marker_function (ChamplainMarker *self,
        stationinfo = gnome_internet_radio_locator_station_load_from_file(localstation, 
world_station_xml_filename);
        while (stationinfo != NULL) {
                 if (strcasecmp(stationinfo->location, station_link)==0) {
-                       gchar *statusmsg = g_strconcat(stationinfo->name, " in ", stationinfo->location, " 
(", stationinfo->band, ", ", g_strdup_printf("%li", stationinfo->stream->samplerate), " Hz, ", 
g_strdup_printf("%li", stationinfo->stream->bitrate), " kbps)", NULL);
+                       gchar *statusmsg = g_strconcat(stationinfo->name, " (", stationinfo->uri, ") in ", 
stationinfo->location, " (", stationinfo->band, ", ", g_strdup_printf("%li", 
stationinfo->stream->samplerate), " Hz, ", g_strdup_printf("%li", stationinfo->stream->bitrate), " kbps)", 
NULL);
                        gnome_internet_radio_locator_player_new(GST_PLAYER(player), stationinfo->stream->uri);
                        context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "Station Name");
                        gtk_statusbar_pop (GTK_STATUSBAR (statusbar), GPOINTER_TO_INT (context_id));
diff --git a/src/gnome-internet-radio-locator.c b/src/gnome-internet-radio-locator.c
index 2d54db0..9284fad 100644
--- a/src/gnome-internet-radio-locator.c
+++ b/src/gnome-internet-radio-locator.c
@@ -769,7 +769,7 @@ on_search_matches(GtkEntryCompletion *widget,
        stationinfo = gnome_internet_radio_locator_station_load_from_file(localstation, 
world_station_xml_filename);
        while (stationinfo != NULL) {
                if (strcasecmp(stationinfo->stream->uri, g_value_get_string(&value))==0) {
-                       gchar *statusmsg = g_strconcat(stationinfo->name, " in ", stationinfo->location, " 
(", stationinfo->band, ", ", g_strdup_printf("%li", stationinfo->stream->samplerate), " Hz, ", 
g_strdup_printf("%li", stationinfo->stream->bitrate), " kbps)", NULL);
+                       gchar *statusmsg = g_strconcat(stationinfo->name, " (", stationinfo->uri, ") in ", 
stationinfo->location, " (", stationinfo->band, ", ", g_strdup_printf("%li", 
stationinfo->stream->samplerate), " Hz, ", g_strdup_printf("%li", stationinfo->stream->bitrate), " kbps)", 
NULL);
                        context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (statusbar), "Station Name");
                        gtk_statusbar_pop (GTK_STATUSBAR (statusbar), GPOINTER_TO_INT (context_id));
                        gtk_statusbar_push (GTK_STATUSBAR (statusbar), GPOINTER_TO_INT (context_id), 
statusmsg);


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