comparison src/layout.c @ 1006:45ce6c1f331e

Silent warnings about unused functions when lcms is not used.
author zas_
date Thu, 28 Aug 2008 10:50:02 +0000
parents 6ca2c5fd7b13
children 1a4b18c58556
comparison
equal deleted inserted replaced
1005:ec2788ff6791 1006:45ce6c1f331e
312 *----------------------------------------------------------------------------- 312 *-----------------------------------------------------------------------------
313 * color profile button (and menu) 313 * color profile button (and menu)
314 *----------------------------------------------------------------------------- 314 *-----------------------------------------------------------------------------
315 */ 315 */
316 316
317 #ifdef HAVE_LCMS
318
317 static void layout_color_menu_enable_cb(GtkWidget *widget, gpointer data) 319 static void layout_color_menu_enable_cb(GtkWidget *widget, gpointer data)
318 { 320 {
319 LayoutWindow *lw = data; 321 LayoutWindow *lw = data;
320 322
321 layout_image_color_profile_set_use(lw, (!layout_image_color_profile_get_use(lw))); 323 layout_image_color_profile_set_use(lw, (!layout_image_color_profile_get_use(lw)));
373 static gchar *layout_color_name_parse(const gchar *name) 375 static gchar *layout_color_name_parse(const gchar *name)
374 { 376 {
375 if (!name) return g_strdup(_("Empty")); 377 if (!name) return g_strdup(_("Empty"));
376 return g_strdelimit(g_strdup(name), "_", '-'); 378 return g_strdelimit(g_strdup(name), "_", '-');
377 } 379 }
380
381 #endif /* HAVE_LCMS */
378 382
379 static void layout_color_button_press_cb(GtkWidget *widget, gpointer data) 383 static void layout_color_button_press_cb(GtkWidget *widget, gpointer data)
380 { 384 {
381 #ifndef HAVE_LCMS 385 #ifndef HAVE_LCMS
382 gchar *msg = g_strdup_printf(_("This installation of %s was not built with support for color profiles."), GQ_APPNAME); 386 gchar *msg = g_strdup_printf(_("This installation of %s was not built with support for color profiles."), GQ_APPNAME);