[gnome-internet-radio-locator] Set undefined city label color
- From: Ole Aamot <ole src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-internet-radio-locator] Set undefined city label color
- Date: Fri, 1 Feb 2019 21:50:21 +0000 (UTC)
commit c5f3b9cbacbdd216ef435052a60d2ae4121f7fee
Author: Ole Aamot <ole gnome org>
Date: Fri Feb 1 22:49:34 2019 +0100
Set undefined city label color
NEWS | 1 +
src/gnome-internet-radio-locator.c | 4 ++++
2 files changed, 5 insertions(+)
---
diff --git a/NEWS b/NEWS
index c478afa..8806dce 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Version 1.8.0
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 Tampere
* src/gnome-internet-radio-locator-markers.c: Add marker for Warsaw
diff --git a/src/gnome-internet-radio-locator.c b/src/gnome-internet-radio-locator.c
index 4705d28..ab09292 100644
--- a/src/gnome-internet-radio-locator.c
+++ b/src/gnome-internet-radio-locator.c
@@ -121,6 +121,8 @@ mouse_click_cb (ClutterActor *actor, ClutterButtonEvent *event, ChamplainView *v
GeocodeLocation *location_city;
GeocodeLocation *location_country;
GeocodeReverse *reverse_city, *reverse_country;
+ ClutterColor city_color = { 0x9a, 0x9b, 0x9c, 0x9d };
+ ClutterColor text_color = { 0xff, 0xff, 0xff, 0xff };
const char *name, *name_city, *name_country;
/* GeocodeForward *fwd; */
@@ -143,6 +145,8 @@ mouse_click_cb (ClutterActor *actor, ClutterButtonEvent *event, ChamplainView *v
marker = champlain_label_new_from_file ("icons/emblem-generic.png", NULL);
name = g_strconcat(name_city, ", ", name_country, NULL);
champlain_label_set_text (CHAMPLAIN_LABEL (marker), (gchar *)name);
+ 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), lat, lon);
if (g_strcmp0(name, NULL)) {
champlain_marker_layer_add_marker (layer, CHAMPLAIN_MARKER (marker));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]