diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-05-07 10:49:37 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-05-07 11:01:27 +0200 |
commit | 5ed25a7e5f115a71433f137905394ae6b119e450 (patch) | |
tree | b0a0933af14759717770f4550017b78f0e772a6d /libupower-glib | |
parent | e8beb269dffd7957a1faefa9794a6cbc1a23d40e (diff) | |
download | upower-5ed25a7e5f115a71433f137905394ae6b119e450.tar.gz |
all: Remove IsDocked property
Removes the deprecated (for not very long) property, before we do a 1.0
release.
https://bugs.freedesktop.org/show_bug.cgi?id=78380
Diffstat (limited to 'libupower-glib')
-rw-r--r-- | libupower-glib/up-client.c | 37 | ||||
-rw-r--r-- | libupower-glib/up-client.h | 1 |
2 files changed, 0 insertions, 38 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index 1beb220..48d99a0 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -67,7 +67,6 @@ enum { PROP_ON_BATTERY, PROP_LID_IS_CLOSED, PROP_LID_IS_PRESENT, - PROP_IS_DOCKED, PROP_LAST }; @@ -227,24 +226,6 @@ 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. This property - * is deprecated. Use XRandR, for example, to check for external displays - * instead. - * - * Return value: Always %FALSE. - * - * Since: 0.9.2 - */ -gboolean -up_client_get_is_docked (UpClient *client) -{ - return FALSE; -} - -/** * up_client_get_on_battery: * @client: a #UpClient instance. * @@ -339,9 +320,6 @@ up_client_get_property (GObject *object, case PROP_LID_IS_PRESENT: 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, FALSE); - break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); break; @@ -418,21 +396,6 @@ up_client_class_init (UpClientClass *klass) G_PARAM_READABLE)); /** - * UpClient:is-docked: - * - * If the laptop is docked - * - * Since: 0.9.8 - */ - g_object_class_install_property (object_class, - PROP_IS_DOCKED, - g_param_spec_boolean ("is-docked", - "If a laptop is docked", - NULL, - FALSE, - G_PARAM_READABLE)); - - /** * UpClient::device-added: * @client: the #UpClient instance that emitted the signal * @device: the #UpDevice that was added. diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h index 60bfb15..79c2d9e 100644 --- a/libupower-glib/up-client.h +++ b/libupower-glib/up-client.h @@ -82,7 +82,6 @@ GPtrArray *up_client_get_devices (UpClient *client); const gchar *up_client_get_daemon_version (UpClient *client); gboolean up_client_get_lid_is_closed (UpClient *client); gboolean up_client_get_lid_is_present (UpClient *client); -gboolean up_client_get_is_docked (UpClient *client); gboolean up_client_get_on_battery (UpClient *client); G_END_DECLS |