diff src/collect.c @ 1420:3a9fb1b52559

Use gboolean where applicable, for the sake of consistency.
author zas_
date Thu, 12 Mar 2009 21:06:37 +0000
parents fe4da037be21
children cf4029d10d38
line wrap: on
line diff
--- a/src/collect.c	Wed Mar 11 23:36:01 2009 +0000
+++ b/src/collect.c	Thu Mar 12 21:06:37 2009 +0000
@@ -94,7 +94,7 @@
 	ci->pixbuf = pixbuf;
 }
 
-gint collection_info_load_thumb(CollectInfo *ci)
+gboolean collection_info_load_thumb(CollectInfo *ci)
 {
 	if (!ci) return FALSE;
 
@@ -595,10 +595,10 @@
 	return ci;
 }
 
-gint collection_add_check(CollectionData *cd, FileData *fd, gint sorted, gint must_exist)
+gboolean collection_add_check(CollectionData *cd, FileData *fd, gboolean sorted, gboolean must_exist)
 {
 	struct stat st;
-	gint valid;
+	gboolean valid;
 
 	if (must_exist)
 		{
@@ -635,12 +635,12 @@
 	return valid;
 }
 
-gint collection_add(CollectionData *cd, FileData *fd, gint sorted)
+gboolean collection_add(CollectionData *cd, FileData *fd, gboolean sorted)
 {
 	return collection_add_check(cd, fd, sorted, TRUE);
 }
 
-gint collection_insert(CollectionData *cd, FileData *fd, CollectInfo *insert_ci, gint sorted)
+gboolean collection_insert(CollectionData *cd, FileData *fd, CollectInfo *insert_ci, gboolean sorted)
 {
 	struct stat st;
 
@@ -666,7 +666,7 @@
 	return FALSE;
 }
 
-gint collection_remove(CollectionData *cd, FileData *fd)
+gboolean collection_remove(CollectionData *cd, FileData *fd)
 {
 	CollectInfo *ci;
 
@@ -720,7 +720,7 @@
 	collection_window_refresh(collection_window_find(cd));
 }
 
-gint collection_rename(CollectionData *cd, FileData *fd)
+gboolean collection_rename(CollectionData *cd, FileData *fd)
 {
 	CollectInfo *ci;
 	ci = collection_list_find_fd(cd->list, fd);
@@ -776,10 +776,10 @@
  *-------------------------------------------------------------------
  */
 
-static gint collection_window_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data)
+static gboolean collection_window_keypress(GtkWidget *widget, GdkEventKey *event, gpointer data)
 {
 	CollectWindow *cw = data;
-	gint stop_signal = FALSE;
+	gboolean stop_signal = FALSE;
 	gint edit_val = -1;
 	GList *list;
 
@@ -1137,7 +1137,7 @@
 	if (cw) collection_window_close_final(cw);
 }
 
-gint collection_window_modified_exists(void)
+gboolean collection_window_modified_exists(void)
 {
 	GList *work;
 
@@ -1152,7 +1152,7 @@
 	return FALSE;
 }
 
-static gint collection_window_delete(GtkWidget *widget, GdkEvent *event, gpointer data)
+static gboolean collection_window_delete(GtkWidget *widget, GdkEvent *event, gpointer data)
 {
 	CollectWindow *cw = data;
 	collection_window_close(cw);