diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-17 00:57:27 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2013-10-17 00:57:27 +0200 |
commit | b2f72dd69ac683e7fa213d83b410b38fe1ab1b21 (patch) | |
tree | c48e1c3defefd913365d43a71811347603680f16 /libupower-glib | |
parent | c00eda8ca0c2d8dc772b8cc8b4bdc93ab353dc29 (diff) | |
download | upower-b2f72dd69ac683e7fa213d83b410b38fe1ab1b21.tar.gz |
all: Remove WarningLevel from the daemon properties
The WarningLevel property just replicated the warning level
on the display device, or at least should have. So we fix the latter
to remove the former.
Diffstat (limited to 'libupower-glib')
-rw-r--r-- | libupower-glib/up-client.c | 36 | ||||
-rw-r--r-- | libupower-glib/up-client.h | 1 |
2 files changed, 0 insertions, 37 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c index ec9434d..2169a59 100644 --- a/libupower-glib/up-client.c +++ b/libupower-glib/up-client.c @@ -69,7 +69,6 @@ enum { PROP_0, PROP_DAEMON_VERSION, PROP_ON_BATTERY, - PROP_WARNING_LEVEL, PROP_LID_IS_CLOSED, PROP_LID_IS_PRESENT, PROP_IS_DOCKED, @@ -230,23 +229,6 @@ up_client_get_on_battery (UpClient *client) return up_client_glue_get_on_battery (client->priv->proxy); } -/** - * up_client_get_warning_level: - * @client: a #UpClient instance. - * - * Get whether the system is low on battery, or critically low. - * - * Return value: The #UpDeviceLevel of the whole system. - * - * Since: 1.0 - **/ -UpDeviceLevel -up_client_get_warning_level (UpClient *client) -{ - g_return_val_if_fail (UP_IS_CLIENT (client), FALSE); - return up_client_glue_get_warning_level (client->priv->proxy); -} - /* * up_client_add: */ @@ -351,9 +333,6 @@ up_client_get_property (GObject *object, case PROP_ON_BATTERY: g_value_set_boolean (value, up_client_glue_get_on_battery (client->priv->proxy)); break; - case PROP_WARNING_LEVEL: - g_value_set_uint (value, up_client_glue_get_warning_level (client->priv->proxy)); - break; case PROP_LID_IS_CLOSED: g_value_set_boolean (value, up_client_glue_get_lid_is_closed (client->priv->proxy)); break; @@ -410,21 +389,6 @@ up_client_class_init (UpClientClass *klass) FALSE, G_PARAM_READABLE)); /** - * UpClient:warning-level: - * - * The warning level e.g. %UP_DEVICE_LEVEL_WARNING. - * - * Since: 1.0 - **/ - g_object_class_install_property (object_class, - PROP_WARNING_LEVEL, - g_param_spec_uint ("warning-level", - NULL, NULL, - UP_DEVICE_LEVEL_UNKNOWN, - UP_DEVICE_LEVEL_LAST, - UP_DEVICE_LEVEL_UNKNOWN, - G_PARAM_READABLE)); - /** * UpClient:lid-is-closed: * * If the laptop lid is closed. diff --git a/libupower-glib/up-client.h b/libupower-glib/up-client.h index 0c58a3d..0f502d9 100644 --- a/libupower-glib/up-client.h +++ b/libupower-glib/up-client.h @@ -89,7 +89,6 @@ 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); -UpDeviceLevel up_client_get_warning_level (UpClient *client); G_END_DECLS |