[gnumeric] Fix compilation problem re link colour



commit 6949a8d52357b2112e31e4051225eb87c8ca8ddc
Author: Morten Welinder <terra gnome org>
Date:   Wed Oct 24 15:06:47 2018 -0400

    Fix compilation problem re link colour

 src/gui-util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gui-util.c b/src/gui-util.c
index 06f8372d8..f5fd0a57b 100644
--- a/src/gui-util.c
+++ b/src/gui-util.c
@@ -1377,7 +1377,7 @@ gnm_style_context_get_color (GtkStyleContext *context,
        gtk_style_context_restore (context);
 }
 
-#ifdef GTK_STATE_FLAG_LINK
+#if GTK_CHECK_VERSION(3,12,0)
 void
 gnm_get_link_color (GtkWidget *widget, GdkRGBA *res)
 {
@@ -1388,7 +1388,7 @@ gnm_get_link_color (GtkWidget *widget, GdkRGBA *res)
 void
 gnm_get_link_color (G_GNUC_UNUSED GtkWidget *widget, GdkRGBA *res)
 {
-  gdk_rgba_parse (res, "blue");
+       gdk_rgba_parse (res, "blue");
 #warning GTK_STATE_FLAG_LINK is undefined, using color blue
 }
 #endif /* GTK_STATE_FLAG_LINK */


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