[gtk+] Fix compilation warning: cast to GCompareFunc
- From: Javier Jardón <jjardon src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Fix compilation warning: cast to GCompareFunc
- Date: Thu, 11 Feb 2010 00:12:37 +0000 (UTC)
commit 45987f44c4aba675b262df2d2aa7d96be43bb1f0
Author: Javier Jardón <jjardon gnome org>
Date: Thu Feb 11 00:56:48 2010 +0100
Fix compilation warning: cast to GCompareFunc
gtk/gtkscale.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 4c3f478..a69e053 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]