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

Function queue_done_action

gtk/src/callbacks.c:5695–5722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5693}
5694
5695static void
5696queue_done_action (signal_user_data_t *ud)
5697{
5698 switch (ghb_get_queue_done_action()) {
5699 case 1:
5700 ghb_countdown_dialog_show(_("Your encode is complete."),
5701 _("Quitting HandBrake"),
5702 (GSourceFunc)quit_cb, 60, ud);
5703 break;
5704 case 2:
5705 if (can_suspend_logind())
5706 {
5707 ghb_countdown_dialog_show(_("Your encode is complete."),
5708 _("Putting computer to sleep"),
5709 (GSourceFunc)suspend_cb, 60, ud);
5710 }
5711 break;
5712 case 3:
5713 if (can_shutdown_logind())
5714 {
5715 ghb_countdown_dialog_show(_("Your encode is complete."),
5716 _("Shutting down the computer"),
5717 (GSourceFunc)shutdown_cb, 60, ud);
5718 }
5719
5720 default:
5721 break; }
5722}
5723
5724G_MODULE_EXPORT void
5725hb_window_save_size_cb (GtkWidget *widget, GParamSpec *spec, gpointer data)

Callers 1

ghb_start_next_jobFunction · 0.85

Calls 4

can_suspend_logindFunction · 0.85
can_shutdown_logindFunction · 0.85

Tested by

no test coverage detected