--- list_utils.c.orig 2005-12-07 20:09:47.000000000 -0700 +++ list_utils.c.orig 2005-12-07 20:10:34.000000000 -0700 @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +#include #include "emelfm.h" void @@ -73,7 +74,7 @@ clist_select_rows(GtkWidget *clist, GList *rows) { GList *tmp; - gint row; + glong row; if (rows == NULL) { @@ -84,7 +85,7 @@ { for (tmp = rows; tmp != NULL; tmp = tmp->next) { - row = (gint)tmp->data; + row = (glong)tmp->data; if (row < GTK_CLIST(clist)->rows) { gtk_clist_select_row(GTK_CLIST(clist), row, 0); @@ -107,7 +108,7 @@ GList *tmp; for (tmp = GTK_CLIST(clist)->selection; tmp != NULL; tmp = tmp->next) - if (row == (gint)tmp->data) + if (row == (glong)tmp->data) return TRUE; return FALSE; }