|
|
|
|
@ -1143,6 +1143,8 @@ gboolean yon_interface_update(main_window *widgets){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
int descr_size;
|
|
|
|
|
config_str config_descr = yon_resource_open_file(systemd_config_path,&descr_size);
|
|
|
|
|
for (int i=0; i<config_size;i++){
|
|
|
|
|
int size;
|
|
|
|
|
if (config_files[i][strlen(config_files[i])-1]=='\n') config_files[i][strlen(config_files[i])-1] = '\0';
|
|
|
|
|
@ -1150,6 +1152,28 @@ gboolean yon_interface_update(main_window *widgets){
|
|
|
|
|
if (parsed&&size>2){
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
char *description = "";
|
|
|
|
|
{
|
|
|
|
|
for (int k=0;k<descr_size;k++){
|
|
|
|
|
int parsed_size;
|
|
|
|
|
config_str parsed_descr = yon_char_parse(config_descr[k],&parsed_size,";");
|
|
|
|
|
if (parsed_size){
|
|
|
|
|
for (int j=1;j<parsed_size;j++){
|
|
|
|
|
GRegex *regex = g_regex_new(parsed_descr[0],0,0,NULL);
|
|
|
|
|
|
|
|
|
|
GMatchInfo *match = NULL;
|
|
|
|
|
g_regex_match(regex,parsed[2],0,&match);
|
|
|
|
|
g_regex_unref(regex);
|
|
|
|
|
if (g_match_info_matches(match)){
|
|
|
|
|
yon_char_remove_last_symbol(parsed_descr[1],'\n');
|
|
|
|
|
description = yon_char_new(parsed_descr[1]);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
g_match_info_unref(match);
|
|
|
|
|
}
|
|
|
|
|
yon_char_parsed_free(parsed_descr,parsed_size);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
gtk_list_store_append(widgets->ConfigList,&iter);
|
|
|
|
|
gtk_list_store_set(widgets->ConfigList,&iter,0,parsed[2],1,parsed[1],2,description,-1);
|
|
|
|
|
}
|
|
|
|
|
|