| 267 | static guint suspend_cookie = 0; |
| 268 | |
| 269 | static void |
| 270 | inhibit_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 | |
| 282 | static void |
| 283 | uninhibit_suspend (void) |
no outgoing calls
no test coverage detected