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

Function shutdown_cb

gtk/src/callbacks.c:3837–3853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3835}
3836
3837static gboolean
3838shutdown_cb(countdown_t *cd)
3839{
3840 cd->timeout--;
3841 gtk_message_dialog_format_secondary_text(cd->dlg, _("%s in %d seconds…"),
3842 cd->action, cd->timeout);
3843 if (cd->timeout == 0)
3844 {
3845 ghb_hb_cleanup(FALSE);
3846 prune_logs();
3847
3848 shutdown_logind();
3849 g_application_quit(g_application_get_default());
3850 return FALSE;
3851 }
3852 return TRUE;
3853}
3854
3855static gboolean
3856suspend_cb(countdown_t *cd)

Callers

nothing calls this directly

Calls 3

ghb_hb_cleanupFunction · 0.85
prune_logsFunction · 0.85
shutdown_logindFunction · 0.85

Tested by

no test coverage detected