Skip to content

Commit

Permalink
bar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 25, 2008
1 parent 56b0d6e commit 8973118
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bar_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8973118

Please sign in to comment.