GNOME Bugzilla – Bug 705275
Uses deprecated UPower functionality
Last modified: 2013-08-02 16:12:48 UTC
Created attachment 250603 [details] [review] patch UPower's can_hibernate is deprecated and will return an error unless upower is built with --enable-deprecated. The function is also not defined unless the application defines UPOWER_ENABLE_DEPRECATED, which g-c-c does not do, and the build system currently does not enable the warning (or error) about this. Attached a half-assed patch porting the power panel to use the systemd-logind interface instead.
Created attachment 250722 [details] [review] power: Use logind to discover CanHibernate The upower functionality is deprecated and will return an error unless upower is built with --enable-deprecated. The function is also not defined unless the application defines UPOWER_ENABLE_DEPRECATED, which g-c-c does not do, and the build system currently does not enable the warning (or error) about this.
Slightly fixed up, thanks for the patch! :) Attachment 250722 [details] pushed as 364eee3 - power: Use logind to discover CanHibernate