diff src/color-man.c @ 1420:3a9fb1b52559

Use gboolean where applicable, for the sake of consistency.
author zas_
date Thu, 12 Mar 2009 21:06:37 +0000
parents 8b89e3ff286b
children 24a12aa0cb54
line wrap: on
line diff
--- a/src/color-man.c	Wed Mar 11 23:36:01 2009 +0000
+++ b/src/color-man.c	Thu Mar 12 21:06:37 2009 +0000
@@ -36,7 +36,7 @@
 	ColorManProfileType profile_out_type;
 	gchar *profile_out_file;
 
-	gint has_alpha;
+	gboolean has_alpha;
 
 	gint refcount;
 };
@@ -47,7 +47,7 @@
 
 static void color_man_lib_init(void)
 {
-	static gint init_done = FALSE;
+	static gboolean init_done = FALSE;
 
 	if (init_done) return;
 	init_done = TRUE;
@@ -136,7 +136,7 @@
 static ColorManCache *color_man_cache_new(ColorManProfileType in_type, const gchar *in_file,
 					  guchar *in_data, guint in_data_len,
 					  ColorManProfileType out_type, const gchar *out_file,
-					  gint has_alpha)
+					  gboolean has_alpha)
 {
 	ColorManCache *cc;
 
@@ -213,7 +213,7 @@
 
 static ColorManCache *color_man_cache_find(ColorManProfileType in_type, const gchar *in_file,
 					   ColorManProfileType out_type, const gchar *out_file,
-					   gint has_alpha)
+					   gboolean has_alpha)
 {
 	GList *work;
 
@@ -221,7 +221,7 @@
 	while (work)
 		{
 		ColorManCache *cc;
-		gint match = FALSE;
+		gboolean match = FALSE;
 
 		cc = work->data;
 		work = work->next;
@@ -253,7 +253,7 @@
 static ColorManCache *color_man_cache_get(ColorManProfileType in_type, const gchar *in_file,
 					  guchar *in_data, guint in_data_len,
 					  ColorManProfileType out_type, const gchar *out_file,
-					  gint has_alpha)
+					  gboolean has_alpha)
 {
 	ColorManCache *cc;
 
@@ -315,11 +315,12 @@
 
 }
 
-static gint color_man_idle_cb(gpointer data)
+static gboolean color_man_idle_cb(gpointer data)
 {
 	ColorMan *cm = data;
 	gint width, height;
 	gint rh;
+
 	if (!cm->pixbuf) return FALSE;
 
 	if (cm->imd &&
@@ -359,7 +360,7 @@
 				    ColorManProfileType screen_type, const gchar *screen_file)
 {
 	ColorMan *cm;
-	gint has_alpha;
+	gboolean has_alpha;
 
 	if (imd) pixbuf = image_get_pixbuf(imd);