MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / ghb_power_manager_init

Function ghb_power_manager_init

gtk/src/power-manager.c:289–302  ·  view source on GitHub ↗

Initializes the D-Bus connections to monitor power state. */

Source from the content-addressed store, hash-verified

287
288/* Initializes the D-Bus connections to monitor power state. */
289void
290ghb_power_manager_init (signal_user_data_t *ud)
291{
292 static size_t init = 0;
293
294 if (g_once_init_enter(&init))
295 {
296 upower_proxy_new_async(ud);
297#if GLIB_CHECK_VERSION(2, 70, 0)
298 power_monitor = power_monitor_new(ud);
299#endif
300 g_once_init_leave(&init, 1);
301 }
302}
303
304/* Resets the status when the start/pause button is clicked, in order to
305 * avoid phantom resumes. */

Callers 1

ghb_application_activateFunction · 0.85

Calls 2

upower_proxy_new_asyncFunction · 0.85
power_monitor_newFunction · 0.85

Tested by

no test coverage detected