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

Function title_add_set_error_text

gtk/src/title-add.c:343–368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341}
342
343static void
344title_add_set_error_text (signal_user_data_t *ud, gboolean are_conflicts)
345{
346 const gchar *msg;
347 static gboolean conflict_showing = FALSE;
348 GtkMessageType msg_type;
349
350 if (are_conflicts)
351 {
352 msg = _("Duplicate destination files detected. Duplicates will not be added to the queue.");
353 msg_type = GTK_MESSAGE_WARNING;
354 }
355 else
356 {
357 msg = _("Destination files OK. No duplicates detected.");
358 msg_type = GTK_MESSAGE_INFO;
359 }
360 if (are_conflicts ^ conflict_showing)
361 {
362 GtkInfoBar *info = GTK_INFO_BAR(ghb_builder_widget("title_add_multiple_infobar"));
363 GtkLabel *label = GTK_LABEL(ghb_builder_widget("title_add_multiple_label1"));
364 gtk_label_set_markup(label, msg);
365 gtk_info_bar_set_message_type(info, msg_type);
366 conflict_showing = are_conflicts;
367 }
368}
369
370static void title_add_check_conflicts (signal_user_data_t *ud)
371{

Callers 3

title_dest_file_cbFunction · 0.85
title_dest_dir_cbFunction · 0.85

Calls 1

ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected