# HG changeset patch # User nadvornik # Date 1241807349 0 # Node ID de111f20d4aef71d37592b9823bbfb1dec8f0a78 # Parent f43e1d1299db46539788b5cc72c619c38cb57068 better tooltip for disabled lcms diff -r f43e1d1299db -r de111f20d4ae src/layout_util.c --- a/src/layout_util.c Thu May 07 20:24:35 2009 +0000 +++ b/src/layout_util.c Fri May 08 18:29:09 2009 +0000 @@ -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);