Revision: 1692
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1692&view=rev
Author:   nadvornik
Date:     2009-05-08 18:29:09 +0000 (Fri, 08 May 2009)

Log Message:
-----------
better tooltip for disabled lcms

Modified Paths:
--------------
    trunk/src/layout_util.c

Modified: trunk/src/layout_util.c
===================================================================
--- trunk/src/layout_util.c     2009-05-07 20:24:35 UTC (rev 1691)
+++ trunk/src/layout_util.c     2009-05-08 18:29:09 UTC (rev 1692)
@@ -2069,8 +2069,8 @@
        use_color = layout_image_color_profile_get_use(lw);
 
        action = gtk_action_group_get_action(lw->action_group, 
"UseColorProfiles");
+#ifdef HAVE_LCMS
        gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), use_color);
-       
        if (layout_image_color_profile_get_status(lw, &image_profile, 
&screen_profile))
                {
                gchar *buf;
@@ -2084,6 +2084,11 @@
                {
                g_object_set(G_OBJECT(action), "tooltip", _("Click to enable 
color management"), NULL);
                }
+#else
+       gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), FALSE);
+       gtk_action_set_sensitive(action, FALSE);
+       g_object_set(G_OBJECT(action), "tooltip", _("Color profiles not 
supported"), NULL);
+#endif
 
        action = gtk_action_group_get_action(lw->action_group, 
"UseImageProfile");
        gtk_toggle_action_set_active(GTK_TOGGLE_ACTION(action), use_image);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to