|
|
|
|
@ -367,22 +367,19 @@ void yon_interface_update(main_window *widgets){
|
|
|
|
|
if (!yon_char_is_empty(region)){
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->RegionCombo),region);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->RegionCombo),0);
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->RegionCombo),"Europe");
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->RegionSensitiveCheck),0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(zone)){
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->ZoneCombo),zone);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ZoneCombo),0);
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->ZoneCombo),"Moscow");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char *language = config(lang_parameter);
|
|
|
|
|
if (!yon_char_is_empty(language)){
|
|
|
|
|
int feasf = gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language);
|
|
|
|
|
if (feasf){
|
|
|
|
|
printf("fsa\n");
|
|
|
|
|
};
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LanguageCombo),0);
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->MainLanguageSensitiveCheck),0);
|
|
|
|
|
@ -421,7 +418,13 @@ void yon_interface_update(main_window *widgets){
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
for_iter(widgets->LayoutList,&iter){
|
|
|
|
|
char *id;
|
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(widgets->LayoutList),&iter,0,&id,-1);
|
|
|
|
|
if (!strcmp(id,"ru")||!strcmp(id,"us")){
|
|
|
|
|
gtk_tree_store_set(widgets->LayoutList,&iter,3,1,-1);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_tree_store_set((widgets->LayoutList),&iter,3,0,-1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->LayoutSensitiveCheck),0);
|
|
|
|
|
}
|
|
|
|
|
@ -746,7 +749,7 @@ void on_language_window_accept(GtkWidget *,dictionary *dict){
|
|
|
|
|
if (status)
|
|
|
|
|
yon_char_parsed_add_or_create_if_exists(parsed,&size,current);
|
|
|
|
|
}
|
|
|
|
|
char *final = yon_char_parsed_to_string(parsed,size,", ");
|
|
|
|
|
char *final = yon_char_parsed_to_string(parsed,size,"; ");
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->AvailableLanguagesEntry),final);
|
|
|
|
|
free(final);
|
|
|
|
|
yon_char_parsed_free(parsed,size);
|
|
|
|
|
|