Mercurial > geeqie.yaz
comparison src/bar_sort.c @ 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 | 44128da39e13 |
comparison
equal
deleted
inserted
replaced
753:477f48ba28d8 | 754:7dbdd80610a3 |
---|---|
367 } | 367 } |
368 | 368 |
369 static void bar_sort_set_filter_cb(GtkWidget *button, gpointer data) | 369 static void bar_sort_set_filter_cb(GtkWidget *button, gpointer data) |
370 { | 370 { |
371 SortData *sd = data; | 371 SortData *sd = data; |
372 gint n; | 372 guint n; |
373 | |
373 if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) return; | 374 if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))) return; |
374 n = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(button), "filter_idx")); | 375 n = GPOINTER_TO_UINT(g_object_get_data(G_OBJECT(button), "filter_idx")); |
375 if (n == 0) return; | 376 if (n == 0) return; |
376 n--; | 377 n--; |
377 bar_sort_set_action(sd, BAR_SORT_FILTER + n); | 378 bar_sort_set_action(sd, BAR_SORT_FILTER + n); |
378 } | 379 } |
379 | 380 |