System language fix

pull/78/head
parent 13d20d180c
commit ec9a4e099e
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -5,7 +5,7 @@ config main_config;
//functions
void on_save_done(main_window *, config_str output, int size){
char *final_output = yon_char_parsed_to_string(output,size,"");
char *final_output = yon_char_parsed_to_string(output,size,"\n");
if (final_output){
printf("%s\n",final_output);
free(final_output);
@ -100,6 +100,7 @@ void yon_config_custom_load(GtkWidget *, main_window *widgets){
void yon_language_update(main_window *widgets){
gtk_combo_box_text_remove_all(GTK_COMBO_BOX_TEXT(widgets->LanguageCombo));
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(widgets->LanguageCombo),DEFAULT_LABEL);
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LanguageCombo),0);
GtkTreeIter iter;
for_iter(GTK_TREE_MODEL(widgets->languagelist),&iter){
char *target, *code;
@ -240,13 +241,13 @@ void yon_config_custom_save(){
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_CUSTOM,config_get_command("system"),NULL);
if (window){};
}
void on_domain_address_save(GtkEntry *self){
void on_domain_address_save(GtkEntry *self){
char *adress = (char*)gtk_entry_get_text(self);
if (!yon_char_is_empty(adress)){
yon_config_register(DOMAIN,DOMAIN_get_command,adress);
}
}
}
void yon_gtk_windget_set_sensitive_from_entry_emptiness(GtkEntry *self, GtkWidget *target){
if (yon_char_is_empty(gtk_entry_get_text(self))){
@ -292,6 +293,7 @@ void on_locale_accept(GtkWidget *self, dictionary *dict){
yon_config_register(locale_parameter,LOCALE_get_command,final_ids);
gtk_entry_set_text(GTK_ENTRY(widgets->LocaleEntry),final_string);
}
yon_language_update(widgets);
on_subwindow_close(self);
}
@ -788,7 +790,6 @@ main_window *yon_main_window_complete(main_window *widgets){
// g_timeout_add(1000,(GSourceFunc)on_check_domain_connected,widgets);
on_check_domain_connected(NULL, widgets);
// gtk_combo_box_set_model(GTK_COMBO_BOX(widgets->LanguageCombo),main_config.localefilter);
int size;
config_str locales = yon_resource_open_file(get_locales_command,&size);
GtkTreeIter iter;

Loading…
Cancel
Save