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

Function inhibit_suspend

gtk/src/callbacks.c:269–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267static guint suspend_cookie = 0;
268
269static void
270inhibit_suspend (void)
271{
272 if (suspend_cookie)
273 {
274 // Already inhibited
275 return;
276 }
277 suspend_cookie = gtk_application_inhibit(GTK_APPLICATION(GHB_APPLICATION_DEFAULT),
278 NULL, GTK_APPLICATION_INHIBIT_SUSPEND | GTK_APPLICATION_INHIBIT_LOGOUT,
279 _("An encode is in progress."));
280}
281
282static void
283uninhibit_suspend (void)

Callers 1

ghb_start_next_jobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected