changeset 754:7dbdd80610a3

bar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.
author zas_
date Sun, 25 May 2008 19:03:30 +0000
parents 477f48ba28d8
children be382bffd11f
files src/bar_sort.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/bar_sort.c	Sat May 24 22:44:18 2008 +0000
+++ b/src/bar_sort.c	Sun May 25 19:03:30 2008 +0000
@@ -369,9 +369,10 @@
 static void bar_sort_set_filter_cb(GtkWidget *button, gpointer data)
 {
 	SortData *sd = data;
-	gint n;
+	guint n;
+
 	if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) return;
-	n = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "filter_idx"));
+	n = GPOINTER_TO_UINT(g_object_get_data(G_OBJECT(button), "filter_idx"));
 	if (n == 0) return;
 	n--;
 	bar_sort_set_action(sd, BAR_SORT_FILTER + n);