|
|
|
|
@ -174,6 +174,11 @@ void on_source_accept(GtkWidget *,source_window *window){
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->DeviceCombo);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (strstr(cur,",")){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),PATH_INVALID_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->DeviceCombo);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_append_element(sources_list,cur,",");
|
|
|
|
|
if (!yon_char_is_empty(sources_list)) free(sources_list);
|
|
|
|
|
sources_list = temp;
|
|
|
|
|
@ -187,7 +192,12 @@ void on_source_accept(GtkWidget *,source_window *window){
|
|
|
|
|
}
|
|
|
|
|
if (yon_char_check_element(sources_list,cur,",")){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),VALUE_REPEAT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->DeviceCombo);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->PathEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (strstr(cur,",")){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),PATH_INVALID_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->PathEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_append_element(sources_list,cur,",");
|
|
|
|
|
@ -198,7 +208,12 @@ void on_source_accept(GtkWidget *,source_window *window){
|
|
|
|
|
char *cur = (char*)gtk_entry_get_text(GTK_ENTRY(element->PathEntry));
|
|
|
|
|
if (yon_char_check_element(sources_list,cur,",")){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),VALUE_REPEAT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->DeviceCombo);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->PathEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (strstr(cur,",")){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),PATH_INVALID_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(element->PathEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
char *temp = yon_char_append_element(sources_list,cur,",");
|
|
|
|
|
|