summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-05-07 10:49:37 +0200
committerBastien Nocera <hadess@hadess.net>2014-05-07 11:01:27 +0200
commit5ed25a7e5f115a71433f137905394ae6b119e450 (patch)
treeb0a0933af14759717770f4550017b78f0e772a6d /src
parente8beb269dffd7957a1faefa9794a6cbc1a23d40e (diff)
downloadupower-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 'src')
-rw-r--r--src/org.freedesktop.UPower.xml14
-rw-r--r--src/up-daemon.c12
2 files changed, 0 insertions, 26 deletions
diff --git a/src/org.freedesktop.UPower.xml b/src/org.freedesktop.UPower.xml
index 9b2319d..c376521 100644
--- a/src/org.freedesktop.UPower.xml
+++ b/src/org.freedesktop.UPower.xml
@@ -199,20 +199,6 @@ method return sender=:1.386 -> dest=:1.451 reply_serial=2
</doc:doc>
</property>
- <property name="IsDocked" type="b" access="read">
- <doc:doc>
- <doc:description>
- <doc:para>
- If the system is currently docked.
- Note: the "is-docked" value is now always False.
- Whether an external display is in use should be checked within
- the session service applying policy on the presence or absence
- of an external display, such as gnome-settings-daemon.
- </doc:para>
- </doc:description>
- </doc:doc>
- </property>
-
</interface>
</node>
diff --git a/src/up-daemon.c b/src/up-daemon.c
index 4a81800..c7fea62 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -49,7 +49,6 @@ enum
PROP_ON_BATTERY,
PROP_LID_IS_CLOSED,
PROP_LID_IS_PRESENT,
- PROP_IS_DOCKED,
PROP_LAST
};
@@ -1180,9 +1179,6 @@ up_daemon_get_property (GObject *object, guint prop_id, GValue *value, GParamSpe
case PROP_LID_IS_PRESENT:
g_value_set_boolean (value, priv->lid_is_present);
break;
- case PROP_IS_DOCKED:
- g_value_set_boolean (value, FALSE);
- break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
@@ -1234,14 +1230,6 @@ up_daemon_class_init (UpDaemonClass *klass)
G_PARAM_READABLE));
g_object_class_install_property (object_class,
- PROP_IS_DOCKED,
- g_param_spec_boolean ("is-docked",
- "Is docked",
- "If this computer is docked",
- FALSE,
- G_PARAM_READABLE));
-
- g_object_class_install_property (object_class,
PROP_ON_BATTERY,
g_param_spec_boolean ("on-battery",
"On Battery",