|
|
|
@ -284,7 +284,10 @@ void on_kernel_addon_info(GtkLabel *self){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GtkWidget *label = NULL;
|
|
|
|
GtkWidget *label = NULL;
|
|
|
|
config_str info = yon_config_load(get_package_info_command(package),&size);
|
|
|
|
yon_packages_info *info_struct = yon_packages_get_info_struct(YON_PACKAGES_ALL,package);
|
|
|
|
|
|
|
|
if (!info_struct) return;
|
|
|
|
|
|
|
|
char* info_string = yon_packages_get_info_string(info_struct);
|
|
|
|
|
|
|
|
config_str info = yon_char_parse(info_string,&size,"\n");
|
|
|
|
if (size!=-1){
|
|
|
|
if (size!=-1){
|
|
|
|
info_element *element = yon_package_info_element_new();
|
|
|
|
info_element *element = yon_package_info_element_new();
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->MainBox),element->MainBox,1,1,0);
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->MainBox),element->MainBox,1,1,0);
|
|
|
|
@ -292,7 +295,7 @@ void on_kernel_addon_info(GtkLabel *self){
|
|
|
|
yon_char_remove_last_symbol(info[i],'\n');
|
|
|
|
yon_char_remove_last_symbol(info[i],'\n');
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
int parsed_size;
|
|
|
|
int parsed_size;
|
|
|
|
config_str parsed = yon_char_parse(info[i],&parsed_size," : ");
|
|
|
|
config_str parsed = yon_char_parse(info[i],&parsed_size,":");
|
|
|
|
gtk_list_store_append(element->InfoList,&iter);
|
|
|
|
gtk_list_store_append(element->InfoList,&iter);
|
|
|
|
gtk_list_store_set(element->InfoList,&iter,0,parsed[0],1,parsed[1],-1);
|
|
|
|
gtk_list_store_set(element->InfoList,&iter,0,parsed[0],1,parsed[1],-1);
|
|
|
|
|
|
|
|
|
|
|
|
|