|
|
|
|
@ -1866,6 +1866,25 @@ void yon_main_window_complete(main_window *widgets){
|
|
|
|
|
yon_window_config_add_listener((GtkWidget*)g_list_nth_data(list,i),yon_char_append("UpdateColumn",yon_char_from_int(i)),"fixed-width",YON_TYPE_INT);
|
|
|
|
|
}
|
|
|
|
|
g_list_free(list);
|
|
|
|
|
{
|
|
|
|
|
int size;
|
|
|
|
|
config_str parsed = yon_config_load(yon_config_parameter_prepare_command(AUTOUPDATE_mode_command,"default",NULL,NULL),&size);
|
|
|
|
|
if (size){
|
|
|
|
|
yon_char_remove_last_symbol(parsed[0],'\n');
|
|
|
|
|
free(yon_char_divide_search(parsed[0],"=",-1));
|
|
|
|
|
char *mode = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(widgets->UpdateModeCombo));
|
|
|
|
|
if (!strcmp(parsed[0],"modsys")){
|
|
|
|
|
mode = yon_char_unite(mode," (",MODSYS_UPDATE_MODE_LABEL,")",NULL);
|
|
|
|
|
} else if (!strcmp(parsed[0],"modules")){
|
|
|
|
|
mode = yon_char_unite(mode," (",MODULES_UPDATE_MODE_LABEL,")",NULL);
|
|
|
|
|
} else if (!strcmp(parsed[0],"system")){
|
|
|
|
|
mode = yon_char_unite(mode," (",SYSTEM_UPDATE_MODE_LABEL,")",NULL);
|
|
|
|
|
}
|
|
|
|
|
gtk_combo_box_text_remove(GTK_COMBO_BOX_TEXT(widgets->UpdateModeCombo),0);
|
|
|
|
|
gtk_combo_box_text_prepend_text(GTK_COMBO_BOX_TEXT(widgets->UpdateModeCombo),mode);
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->UpdateModeCombo),0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
yon_interface_update(widgets);
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->BootCheck),"toggled",G_CALLBACK(on_toggle_button_toggled),widgets);
|
|
|
|
|
|