| 341 | } |
| 342 | |
| 343 | static void |
| 344 | title_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 | |
| 370 | static void title_add_check_conflicts (signal_user_data_t *ud) |
| 371 | { |
no test coverage detected