|
|
|
@ -43,7 +43,7 @@ void yon_config_local_load(GtkWidget *self, main_window *widgets){
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
config_str rtn = yon_config_load(get_id_command,&size);
|
|
|
|
config_str rtn = yon_file_open(get_id_command,&size);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
@ -117,7 +117,7 @@ void yon_config_global_load(GtkWidget *self, main_window *widgets){
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
config_str rtn = yon_config_load(get_id_command,&size);
|
|
|
|
config_str rtn = yon_file_open(get_id_command,&size);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
@ -203,7 +203,7 @@ void yon_config_custom_load(GtkWidget *self, main_window *widgets){
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),DEFAULT_LABEL);
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
config_str rtn = yon_config_load(get_id_command,&size);
|
|
|
|
config_str rtn = yon_file_open(get_id_command,&size);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
rtn[0]=yon_char_divide_search(rtn[0],"\n",-1);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->IDEntry),*rtn);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ConsoleFontCombo),0);
|
|
|
|
@ -773,7 +773,7 @@ main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
|
|
|
|
|
|
|
|
main_config.localeslist = gtk_list_store_new(3,G_TYPE_STRING,G_TYPE_STRING,G_TYPE_BOOLEAN);
|
|
|
|
main_config.localeslist = gtk_list_store_new(3,G_TYPE_STRING,G_TYPE_STRING,G_TYPE_BOOLEAN);
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
config_str locales = yon_config_load(get_locales_command,&size);
|
|
|
|
config_str locales = yon_file_open(get_locales_command,&size);
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
int locsize;
|
|
|
|
int locsize;
|
|
|
|
@ -782,7 +782,7 @@ main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
gtk_list_store_append(widgets->languagelist,&iter);
|
|
|
|
gtk_list_store_append(widgets->languagelist,&iter);
|
|
|
|
gtk_list_store_set(widgets->languagelist,&iter,0,_(loc_parsed[1]),1,loc_parsed[0],2,0,-1);
|
|
|
|
gtk_list_store_set(widgets->languagelist,&iter,0,_(loc_parsed[1]),1,loc_parsed[0],2,0,-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
config_str fonts = yon_config_load(get_fonts_command,&size);
|
|
|
|
config_str fonts = yon_file_open(get_fonts_command,&size);
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
fonts[i]=yon_char_divide_search(fonts[i],"\n",-1);
|
|
|
|
fonts[i]=yon_char_divide_search(fonts[i],"\n",-1);
|
|
|
|
gtk_list_store_append(widgets->fontlist,&iter);
|
|
|
|
gtk_list_store_append(widgets->fontlist,&iter);
|
|
|
|
|