[gnome-settings-daemon] xsettings: Fix thinko that led to animations being disabled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xsettings: Fix thinko that led to animations being disabled
- Date: Mon, 4 Nov 2013 17:46:48 +0000 (UTC)
commit 0d9beb73ea40d7171f2865a73633abf1d6ba328b
Author: Bastien Nocera <hadess hadess net>
Date: Mon Nov 4 18:43:07 2013 +0100
xsettings: Fix thinko that led to animations being disabled
When VNC is in use, animations are disabled, thus ->disabled has
the same value as vnc_in_use, not the opposite.
Spotted by Yosef Or Boczko <yoseforb gmail com>, with help from
Jasper St. Pierre <jstpierre mecheye net>
plugins/xsettings/gsd-remote-display-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/xsettings/gsd-remote-display-manager.c b/plugins/xsettings/gsd-remote-display-manager.c
index c876c4a..e686694 100644
--- a/plugins/xsettings/gsd-remote-display-manager.c
+++ b/plugins/xsettings/gsd-remote-display-manager.c
@@ -80,11 +80,11 @@ update_property_from_variant (GsdRemoteDisplayManager *manager,
GVariant *variant)
{
manager->priv->vnc_in_use = g_variant_get_boolean (variant);
+ manager->priv->disabled = manager->priv->vnc_in_use;
g_debug ("%s because of remote display status (vnc: %d)",
- !manager->priv->vnc_in_use ? "Enabling" : "Disabling",
+ manager->priv->disabled ? "Disabling" : "Enabling",
manager->priv->vnc_in_use);
- manager->priv->disabled = !manager->priv->vnc_in_use;
g_object_notify (G_OBJECT (manager), "force-disable-animations");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]