summaryrefslogtreecommitdiff
path: root/src/up-daemon.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-07 09:27:24 +0200
committerBastien Nocera <hadess@hadess.net>2014-05-07 09:27:24 +0200
commit135339acc197f0d6a92b71c85048c5a7cb6ce9d6 (patch)
treea7fcbd66ffc496fb480c2dc4bcab29707a51dcdc /src/up-daemon.c
parentdbf7eb7e557674a9b888a088f1cae4f36b77e14d (diff)
downloadupower-135339acc197f0d6a92b71c85048c5a7cb6ce9d6.tar.gz
daemon: Deprecate "IsDocked" property
The IsDocked property has been incorrect for a number of laptops for a while, as it thought that laptops with hybrid graphics cards were always docked. The alternative would have been to use the platform/dock_station devices, but those are only exported for ACPI docking stations. Instead, whether an external display is attached (which isn't really docking) should be checked in the same place where the policy depending on the value should be applied, such as gnome-settings-daemon. https://bugs.freedesktop.org/show_bug.cgi?id=36818
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r--src/up-daemon.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index ef90be4..4a81800 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -78,7 +78,6 @@ struct UpDaemonPrivate
UpDeviceLevel warning_level;
gboolean lid_is_closed;
gboolean lid_is_present;
- gboolean is_docked;
/* PropertiesChanged to be emitted */
GHashTable *changed_props;
@@ -722,20 +721,6 @@ up_daemon_set_lid_is_present (UpDaemon *daemon, gboolean lid_is_present)
}
/**
- * up_daemon_set_is_docked:
- **/
-void
-up_daemon_set_is_docked (UpDaemon *daemon, gboolean is_docked)
-{
- UpDaemonPrivate *priv = daemon->priv;
- g_debug ("is_docked = %s", is_docked ? "yes" : "no");
- priv->is_docked = is_docked;
- g_object_notify (G_OBJECT (daemon), "is-docked");
-
- up_daemon_queue_changed_property (daemon, "IsDocked", g_variant_new_boolean (is_docked));
-}
-
-/**
* up_daemon_set_on_battery:
**/
void
@@ -1196,7 +1181,7 @@ up_daemon_get_property (GObject *object, guint prop_id, GValue *value, GParamSpe
g_value_set_boolean (value, priv->lid_is_present);
break;
case PROP_IS_DOCKED:
- g_value_set_boolean (value, priv->is_docked);
+ g_value_set_boolean (value, FALSE);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);