diff src/image.c @ 1590:69f7270b3b27

improved color management button: - now cms menu alway can specify whether use profile from file or not. - current color profile is shown in the tool tip on cms button.
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 03 May 2009 02:21:27 +0900
parents 5b59ccf95b2b
children fee96b7345e8
line wrap: on
line diff
--- a/src/image.c	Fri May 01 15:50:26 2009 +0900
+++ b/src/image.c	Sun May 03 02:21:27 2009 +0900
@@ -332,10 +332,9 @@
 #if 0
 		if (run_in_bg) color_man_start_bg(imd->cm, image_post_process_color_cb, imd);
 #endif
-		return TRUE;
 		}
-
-	return FALSE;
+       image_update_util(imd);
+       return !!cm;
 }
 
 
@@ -1495,6 +1494,16 @@
 	return imd->color_profile_from_image;
 }
 
+gboolean image_color_profile_get_status(ImageWindow *imd, gchar **image_profile, gchar **screen_profile)
+ {
+	ColorMan *cm;
+	if (!imd) return FALSE;
+
+	cm = imd->cm;
+	if (!cm) return FALSE;
+	return color_man_get_status(cm, image_profile, screen_profile);
+ }
+
 void image_set_delay_flip(ImageWindow *imd, gboolean delay)
 {
 	if (!imd ||