* color profile button (and menu)
*-----------------------------------------------------------------------------
*/
-
+#ifdef HAVE_LCMS
static void layout_color_menu_enable_cb(GtkToggleAction *action, gpointer data)
{
-#ifdef HAVE_LCMS
LayoutWindow *lw = data;
if (layout_image_color_profile_get_use(lw) == gtk_toggle_action_get_active(action)) return;
layout_image_color_profile_set_use(lw, gtk_toggle_action_get_active(action));
layout_util_sync_color(lw);
layout_image_refresh(lw);
-#endif
}
+#else
+static void layout_color_menu_enable_cb()
+{
+}
+#endif
+#ifdef HAVE_LCMS
static void layout_color_menu_use_image_cb(GtkToggleAction *action, gpointer data)
{
-#ifdef HAVE_LCMS
LayoutWindow *lw = data;
gint input;
gboolean use_image;
layout_image_color_profile_set(lw, input, gtk_toggle_action_get_active(action));
layout_util_sync_color(lw);
layout_image_refresh(lw);
-#endif
}
+#else
+static void layout_color_menu_use_image_cb()
+{
+}
+#endif
+#ifdef HAVE_LCMS
static void layout_color_menu_input_cb(GtkRadioAction *action, GtkRadioAction *UNUSED(current), gpointer data)
{
-#ifdef HAVE_LCMS
LayoutWindow *lw = data;
gint type;
gint input;
layout_image_color_profile_set(lw, type, use_image);
layout_image_refresh(lw);
-#endif
}
+#else
+static void layout_color_menu_input_cb()
+{
+}
+#endif
/*