summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-07 09:46:08 +0200
committerBastien Nocera <hadess@hadess.net>2014-05-07 09:46:08 +0200
commit54a030a38d3451b90cc6552b15555085bfc215ca (patch)
tree1a9ac6d0d97e6312ff7b0b3a3f3f1efe03415713
parent135339acc197f0d6a92b71c85048c5a7cb6ce9d6 (diff)
lib: Hard-code the IsDocked value
-rw-r--r--libupower-glib/up-client.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 582fac9..cb1c035 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -230,17 +230,18 @@ up_client_get_lid_is_present (UpClient *client)
* up_client_get_is_docked:
* @client: a #UpClient instance.
*
- * Get whether the machine is docked into a docking station.
+ * Get whether the machine is docked into a docking station. This property
+ * is deprecated. Use XRandR, for example, to check for external displays
+ * instead.
*
- * Return value: %TRUE if the machine is docked
+ * Return value: Always %FALSE.
*
* Since: 0.9.2
*/
gboolean
up_client_get_is_docked (UpClient *client)
{
- g_return_val_if_fail (UP_IS_CLIENT (client), FALSE);
- return up_client_glue_get_is_docked (client->priv->proxy);
+ return FALSE;
}
/**
@@ -339,7 +340,7 @@ up_client_get_property (GObject *object,
g_value_set_boolean (value, up_client_glue_get_lid_is_present (client->priv->proxy));
break;
case PROP_IS_DOCKED:
- g_value_set_boolean (value, up_client_glue_get_is_docked (client->priv->proxy));
+ g_value_set_boolean (value, FALSE);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);