diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-02-11 00:56:48 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-02-11 00:57:13 +0100 |
commit | 45987f44c4aba675b262df2d2aa7d96be43bb1f0 (patch) | |
tree | 469e2c34ab0e27d677fed89c9b373a09f62bf3e7 /gtk | |
parent | aefec4693637dbbbee3423486d15ba1af82c883d (diff) | |
download | gtk+-45987f44c4aba675b262df2d2aa7d96be43bb1f0.tar.gz |
Fix compilation warning: cast to GCompareFunc
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkscale.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |