diff options
author | Richard Hughes <richard@hughsie.com> | 2011-09-02 10:08:59 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-09-02 10:12:58 +0100 |
commit | 4d27bea05746b47c60d561525ff8a9467c32375b (patch) | |
tree | 7d3fc60fd7a7ddf415558ddf8ac5d27ffd474b24 | |
parent | cca4d7dc366a7e18e2ed7907d018fd38038db5fb (diff) | |
download | gnome-settings-daemon-4d27bea05746b47c60d561525ff8a9467c32375b.tar.gz |
color: Fix a critical warning on startup
The recalibration timeouts are unsigned, not signed.
-rw-r--r-- | 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 440f9e0d..c0c80d10 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."), |