[gthumb] fixed error when compiled without colord



commit 425e4b0dd8f20388f503bdb8c110fdf8c492c3b8
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jun 27 19:00:07 2017 +0200

    fixed error when compiled without colord

 gthumb/gth-color-manager.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gthumb/gth-color-manager.c b/gthumb/gth-color-manager.c
index 46d7a88..8bc3a5a 100644
--- a/gthumb/gth-color-manager.c
+++ b/gthumb/gth-color-manager.c
@@ -143,6 +143,10 @@ gth_color_manager_new (void)
 }
 
 
+
+#if HAVE_LCMS2 && HAVE_COLORD
+
+
 static void
 _gth_color_manager_add_profile (GthColorManager         *self,
                                const char       *id,
@@ -156,9 +160,6 @@ _gth_color_manager_add_profile (GthColorManager      *self,
 }
 
 
-#if HAVE_LCMS2 && HAVE_COLORD
-
-
 typedef struct {
        GthColorManager *color_manager;
        char            *monitor_name;
@@ -410,7 +411,6 @@ gth_color_manager_get_profile_async (GthColorManager         *self,
        {
                char          *id;
                GthICCProfile *profile;
-               ProfilesData  *data;
 
                id = g_strdup_printf ("monitor://%s", monitor_name);
                profile = _gth_color_manager_get_profile (self, id);
@@ -425,6 +425,8 @@ gth_color_manager_get_profile_async (GthColorManager         *self,
 #if HAVE_COLORD
 
                {
+                       ProfilesData  *data;
+
                        data = g_slice_new (ProfilesData);
                        data->color_manager = g_object_ref (self);
                        data->monitor_name = g_strdup (monitor_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]