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

Function stop_encode_dialog_response

gtk/src/callbacks.c:4082–4107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4080}
4081
4082static void
4083stop_encode_dialog_response (GtkDialog *dialog, int response,
4084 signal_user_data_t *ud)
4085{
4086 g_signal_handlers_disconnect_by_data(dialog, ud);
4087 gtk_window_destroy(GTK_WINDOW(dialog));
4088
4089 switch (response)
4090 {
4091 case 1:
4092 ghb_stop_queue();
4093 ghb_set_cancel_status(GHB_CANCEL_ALL);
4094 break;
4095 case 2:
4096 ghb_stop_queue();
4097 ghb_set_cancel_status(GHB_CANCEL_CURRENT);
4098 break;
4099 case 3:
4100 ghb_set_cancel_status(GHB_CANCEL_FINISH);
4101 break;
4102 case 4:
4103 default:
4104 ghb_set_cancel_status(GHB_CANCEL_NONE);
4105 break;
4106 }
4107}
4108
4109void
4110ghb_stop_encode_dialog_show (signal_user_data_t *ud)

Callers

nothing calls this directly

Calls 2

ghb_stop_queueFunction · 0.85
ghb_set_cancel_statusFunction · 0.85

Tested by

no test coverage detected