[gnome-settings-daemon] media-keys: Avoid a critical warning
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Avoid a critical warning
- Date: Fri, 3 Oct 2014 22:06:41 +0000 (UTC)
commit f1779003a097ded9bdfd3d93fd56fdb634d21390
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 3 18:04:01 2014 -0400
media-keys: Avoid a critical warning
Commit 042f75b21857208680d3c3751dc5a9e755c8418a introduced a
setting of type uint, but used g_settings_get_int() to access it.
This yields:
(gnome-settings-daemon:30705): GLib-CRITICAL **: g_variant_get_int32: \
assertion 'g_variant_is_of_type (value, G_VARIANT_TYPE_INT32)' failed
whenever one uses the C-A-S-r shortcut. Use g_settings_get_uint()
instead, to avoid this.
plugins/media-keys/gsd-media-keys-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index c667120..39fe789 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -1977,7 +1977,7 @@ screencast_start (GsdMediaKeysManager *manager)
manager->priv->screencast_cancellable,
NULL, NULL);
- max_length = g_settings_get_int (manager->priv->settings, "max-screencast-length");
+ max_length = g_settings_get_uint (manager->priv->settings, "max-screencast-length");
if (max_length > 0) {
manager->priv->screencast_timeout_id = g_timeout_add_seconds (max_length,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]