|
|
|
|
@ -20,13 +20,12 @@ int yon_kernel_save(main_window *widgets){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (yon_char_is_empty(enabled_module)){
|
|
|
|
|
if (!yon_char_is_empty(enabled_module)){
|
|
|
|
|
yon_config_register(KERNEL_BOOT_parameter,KERNEL_BOOT_parameter_command,enabled_module);
|
|
|
|
|
} else {
|
|
|
|
|
yon_config_remove_by_key(KERNEL_BOOT_parameter);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -124,6 +123,10 @@ gboolean yon_os_component_insert(struct row_data *row_input){
|
|
|
|
|
main_window *widgets = row_input->widgets;
|
|
|
|
|
gtk_list_box_insert(GTK_LIST_BOX(widgets->OSSoftwareListBox),row->row,-1);
|
|
|
|
|
yon_os_row_setup(row,row_input->name,row_input->version,row_input->tags,row_input->description);
|
|
|
|
|
char *modules = config(modules_parameter);
|
|
|
|
|
if (yon_char_is_empty(modules)){
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),1);
|
|
|
|
|
}
|
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -201,6 +204,9 @@ int yon_software_save(main_window *widgets){
|
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(widgets->AdditionalComponentsList));
|
|
|
|
|
GList *iter;
|
|
|
|
|
char *config_val = config(modules_extra_parameter);
|
|
|
|
|
if (yon_char_is_empty(config_val)){
|
|
|
|
|
yon_config_register(modules_extra_parameter,modules_extra_parameter_command,"");
|
|
|
|
|
}
|
|
|
|
|
for(iter = list;iter;iter=iter->next){
|
|
|
|
|
os_row *row = g_object_get_data(iter->data,"kernel_row");
|
|
|
|
|
char *target = row->name;
|
|
|
|
|
@ -221,7 +227,14 @@ gboolean yon_software_insert(struct row_data *row_input){
|
|
|
|
|
main_window *widgets = row_input->widgets;
|
|
|
|
|
gtk_list_box_insert(GTK_LIST_BOX(widgets->AdditionalComponentsList),row->row,-1);
|
|
|
|
|
yon_os_row_setup(row,row_input->name,row_input->version,row_input->tags,row_input->description);
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),0);
|
|
|
|
|
|
|
|
|
|
char *modules = config(modules_extra_parameter);
|
|
|
|
|
if (yon_char_check_element(modules,row_input->name,",")){
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),1);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),0);
|
|
|
|
|
}
|
|
|
|
|
// gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(row->InstallCheck),0);
|
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|