[Xfce4-commits] [panel-plugins/xfce4-weather-plugin] 13/25: Port forecast details from GdkColor to GdkRGBA

noreply at xfce.org noreply at xfce.org
Mon Sep 17 00:14:10 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-weather-plugin.

commit 90d90462ccd5828be6e7782e659c2c77d643a233
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Wed Sep 12 06:45:32 2018 -0400

    Port forecast details from GdkColor to GdkRGBA
---
 panel-plugin/weather-summary.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/panel-plugin/weather-summary.c b/panel-plugin/weather-summary.c
index 8e0a0d8..94fc7b9 100644
--- a/panel-plugin/weather-summary.c
+++ b/panel-plugin/weather-summary.c
@@ -340,7 +340,7 @@ create_summary_tab(plugin_data *data)
     GtkTextTag *btag, *ltag_img, *ltag_metno, *ltag_wiki, *ltag_geonames;
     GtkWidget *view, *frame, *scrolled, *icon;
     GtkAdjustment *adj;
-    GdkColor lnk_color;
+    GdkRGBA lnk_color;
     xml_time *conditions;
     const gchar *unit;
     gchar *value, *rawvalue, *wind;
@@ -554,15 +554,15 @@ create_summary_tab(plugin_data *data)
     APPEND_TEXT_ITEM(_("Cloudiness"), CLOUDINESS);
 
     /* credits */
-    gdk_color_parse("#0000ff", &lnk_color);
-    ltag_img = gtk_text_buffer_create_tag(buffer, "lnk0", "foreground-gdk",
+    gdk_rgba_parse(&lnk_color, "#0000ff");
+    ltag_img = gtk_text_buffer_create_tag(buffer, "lnk0", "foreground-rgba",
                                           &lnk_color, NULL);
-    ltag_metno = gtk_text_buffer_create_tag(buffer, "lnk1", "foreground-gdk",
+    ltag_metno = gtk_text_buffer_create_tag(buffer, "lnk1", "foreground-rgba",
                                             &lnk_color, NULL);
-    ltag_wiki = gtk_text_buffer_create_tag(buffer, "lnk2", "foreground-gdk",
+    ltag_wiki = gtk_text_buffer_create_tag(buffer, "lnk2", "foreground-rgba",
                                            &lnk_color, NULL);
     ltag_geonames = gtk_text_buffer_create_tag(buffer, "lnk3",
-                                               "foreground-gdk",
+                                               "foreground-rgba",
                                                &lnk_color, NULL);
     APPEND_BTEXT(_("\nCredits\n"));
     APPEND_LINK_ITEM(_("\tEncyclopedic information partly taken from\n\t\t"),

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list