Revert "lib: Mark lid related functions and properties as deprecated"

This reverts commit 4e962fdc8d.

Undeprecate lid APIs since upower continues to support lid DBus APIs.
This commit is contained in:
Kate Hsuan 2026-01-05 22:06:53 +08:00
parent 37f7086983
commit eff769c65f
2 changed files with 2 additions and 4 deletions

View file

@ -479,7 +479,7 @@ up_client_class_init (UpClientClass *klass)
"If the laptop lid is closed",
NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_DEPRECATED));
G_PARAM_READABLE));
/**
* UpClient:lid-is-present:
*
@ -493,7 +493,7 @@ up_client_class_init (UpClientClass *klass)
"If a laptop lid is present",
NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_DEPRECATED));
G_PARAM_READABLE));
/**
* UpClient::device-added:

View file

@ -94,9 +94,7 @@ GPtrArray *up_client_get_devices_finish (UpClient *client,
GAsyncResult *res,
GError **error);
const gchar *up_client_get_daemon_version (UpClient *client);
G_DEPRECATED
gboolean up_client_get_lid_is_closed (UpClient *client);
G_DEPRECATED
gboolean up_client_get_lid_is_present (UpClient *client);
gboolean up_client_get_on_battery (UpClient *client);