mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 18:08:02 +02:00
Remove dkp_client_get_lid_is_present(), we want to encourage people to be using g_object_get
This commit is contained in:
parent
77c767edf4
commit
e827a73922
2 changed files with 0 additions and 17 deletions
|
|
@ -359,22 +359,6 @@ dkp_client_lid_is_closed (DkpClient *client)
|
|||
return client->priv->lid_is_closed;
|
||||
}
|
||||
|
||||
/**
|
||||
* dkp_client_get_lid_is_present:
|
||||
* @client : a #DkpClient instance.
|
||||
*
|
||||
* Gets if the system has a lide device.
|
||||
*
|
||||
* Return value: %TRUE if system has a lid that can be closed or %FALSE otherwise.
|
||||
*/
|
||||
gboolean
|
||||
dkp_client_get_lid_is_present (DkpClient *client)
|
||||
{
|
||||
g_return_val_if_fail (DKP_IS_CLIENT (client), FALSE);
|
||||
dkp_client_ensure_properties (client);
|
||||
return client->priv->lid_is_present;
|
||||
}
|
||||
|
||||
/**
|
||||
* dkp_client_can_suspend:
|
||||
* @client : a #DkpClient instance.
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ gboolean dkp_client_lid_is_closed (DkpClient *client);
|
|||
gboolean dkp_client_can_suspend (DkpClient *client);
|
||||
gboolean dkp_client_on_battery (DkpClient *client);
|
||||
gboolean dkp_client_on_low_battery (DkpClient *client);
|
||||
gboolean dkp_client_get_lid_is_present (DkpClient *client);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue