bar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.
authorLaurent Monin <geeqie@norz.org>
Sun, 25 May 2008 19:03:30 +0000 (19:03 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 25 May 2008 19:03:30 +0000 (19:03 +0000)
src/bar_sort.c

index cdcfb97..f891d64 100644 (file)
@@ -369,9 +369,10 @@ static void bar_sort_set_move_cb(GtkWidget *button, gpointer data)
 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);