projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56b0d6e
)
bar_sort_set_filter_cb(): filter_idx was set as uint so get it as uint.
author
Laurent Monin
<geeqie@norz.org>
Sun, 25 May 2008 19:03:30 +0000
(19:03 +0000)
committer
Laurent Monin
<geeqie@norz.org>
Sun, 25 May 2008 19:03:30 +0000
(19:03 +0000)
src/bar_sort.c
patch
|
blob
|
history
diff --git
a/src/bar_sort.c
b/src/bar_sort.c
index
cdcfb97
..
f891d64
100644
(file)
--- a/
src/bar_sort.c
+++ b/
src/bar_sort.c
@@
-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_
U
INT(g_object_get_data(G_OBJECT(button), "filter_idx"));
if (n == 0) return;
n--;
bar_sort_set_action(sd, BAR_SORT_FILTER + n);