From 45987f44c4aba675b262df2d2aa7d96be43bb1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 11 Feb 2010 00:56:48 +0100 Subject: [PATCH] Fix compilation warning: cast to GCompareFunc --- gtk/gtkscale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 4c3f478506..a69e05375f 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1426,7 +1426,8 @@ gtk_scale_add_mark (GtkScale *scale, mark->markup = g_strdup (markup); mark->position = position; - priv->marks = g_slist_insert_sorted (priv->marks, mark, compare_marks); + priv->marks = g_slist_insert_sorted (priv->marks, mark, + (GCompareFunc) compare_marks); n = g_slist_length (priv->marks); values = g_new (gdouble, n);