diff options
author | infirit <[email protected]> | 2016-04-17 19:23:33 +0200 |
---|---|---|
committer | monsta <[email protected]> | 2017-03-07 22:17:52 +0300 |
commit | a4d30e30fdf9ae097ced2e92c9a5130126ff9b94 (patch) | |
tree | cb90eecd76a3e80f9dfc0092bc4f2644c78c0e07 /src/egg-console-kit.h | |
parent | a11f72eee66b3dc244313a5cd0fc20fd7a1530ad (diff) | |
download | mate-power-manager-a4d30e30fdf9ae097ced2e92c9a5130126ff9b94.tar.bz2 mate-power-manager-a4d30e30fdf9ae097ced2e92c9a5130126ff9b94.tar.xz |
Replace deprecated UPower functions with ConsoleKit2 equivalents
This requires ConsoleKit2 0.9.2.
+ some corrections for issues mentioned at https://github.com/mate-desktop/mate-power-manager/pull/209
Diffstat (limited to 'src/egg-console-kit.h')
-rw-r--r-- | src/egg-console-kit.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/egg-console-kit.h b/src/egg-console-kit.h index c93ddce..6664131 100644 --- a/src/egg-console-kit.h +++ b/src/egg-console-kit.h @@ -58,12 +58,22 @@ gboolean egg_console_kit_stop (EggConsoleKit *console, GError **error); gboolean egg_console_kit_restart (EggConsoleKit *console, GError **error); +gboolean egg_console_kit_suspend (EggConsoleKit *console, + GError **error); +gboolean egg_console_kit_hibernate (EggConsoleKit *console, + GError **error); gboolean egg_console_kit_can_stop (EggConsoleKit *console, gboolean *can_stop, GError **error); gboolean egg_console_kit_can_restart (EggConsoleKit *console, gboolean *can_restart, GError **error); +gboolean egg_console_kit_can_suspend (EggConsoleKit *console, + gboolean *can_restart, + GError **error); +gboolean egg_console_kit_can_hibernate (EggConsoleKit *console, + gboolean *can_restart, + GError **error); G_END_DECLS |