[gnome-settings-daemon] color: Fix a critical warning on startup



commit 4d27bea05746b47c60d561525ff8a9467c32375b
Author: Richard Hughes <richard hughsie com>
Date:   Fri Sep 2 10:08:59 2011 +0100

    color: Fix a critical warning on startup
    
    The recalibration timeouts are unsigned, not signed.

 plugins/color/gsd-color-manager.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 440f9e0..c0c80d1 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1553,7 +1553,7 @@ gcm_session_notify_device (GsdColorManager *manager, CdDevice *device)
         const gchar *title;
         gchar *device_title = NULL;
         gchar *message;
-        gint threshold;
+        guint threshold;
         glong since;
         GsdColorManagerPrivate *priv = manager->priv;
 
@@ -1566,8 +1566,8 @@ gcm_session_notify_device (GsdColorManager *manager, CdDevice *device)
         if (kind == CD_DEVICE_KIND_DISPLAY) {
 
                 /* get from GSettings */
-                threshold = g_settings_get_int (priv->settings,
-                                                GCM_SETTINGS_RECALIBRATE_DISPLAY_THRESHOLD);
+                threshold = g_settings_get_uint (priv->settings,
+                                                 GCM_SETTINGS_RECALIBRATE_DISPLAY_THRESHOLD);
 
                 /* TRANSLATORS: this is when the display has not been recalibrated in a while */
                 message = g_strdup_printf (_("The display '%s' should be recalibrated soon."),
@@ -1575,8 +1575,8 @@ gcm_session_notify_device (GsdColorManager *manager, CdDevice *device)
         } else {
 
                 /* get from GSettings */
-                threshold = g_settings_get_int (priv->settings,
-                                                GCM_SETTINGS_RECALIBRATE_PRINTER_THRESHOLD);
+                threshold = g_settings_get_uint (priv->settings,
+                                                 GCM_SETTINGS_RECALIBRATE_PRINTER_THRESHOLD);
 
                 /* TRANSLATORS: this is when the printer has not been recalibrated in a while */
                 message = g_strdup_printf (_("The printer '%s' should be recalibrated soon."),



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