diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c
index 175cf07..293c348 100644
--- a/source/ubinstall-gtk.c
+++ b/source/ubinstall-gtk.c
@@ -222,23 +222,31 @@ void yon_interface_update(main_window *widgets){
char *system_locale = config(locale_parameter);
if (!yon_char_is_empty(system_locale)){
+ char *chosen_langs = "";
for_iter(widgets->LanguagesList,&iter){
- char *cur=NULL;
- gtk_tree_model_get(GTK_TREE_MODEL(widgets->LanguagesList),&iter,1,&cur,-1);
+ char *cur=NULL, *render = NULL;
+ gtk_tree_model_get(GTK_TREE_MODEL(widgets->LanguagesList),&iter,1,&render,2,&cur,-1);
if (strstr(system_locale,cur)){
gtk_list_store_set((widgets->LanguagesList),&iter,0,1,-1);
+ chosen_langs = yon_char_unite(chosen_langs,!yon_char_is_empty(chosen_langs)?";":"",render,NULL);
} else {
gtk_list_store_set((widgets->LanguagesList),&iter,0,0,-1);
}
}
- gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
+ if (!yon_char_is_empty(chosen_langs)){
+ gtk_entry_set_text(GTK_ENTRY(widgets->AvailableLanguagesEntry),chosen_langs);
+ free(chosen_langs);
+ }
+ // gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
} else {
for_iter(widgets->LanguagesList,&iter){
gtk_list_store_set((widgets->LanguagesList),&iter,0,0,-1);
}
- gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
+ // gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
}
+
+
char *zone = config(zone_parameter);
char *region = NULL;
@@ -257,7 +265,10 @@ void yon_interface_update(main_window *widgets){
char *language = config(lang_parameter);
if (!yon_char_is_empty(language)){
- gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language);
+ int feasf = gtk_combo_box_set_active_id(GTK_COMBO_BOX(widgets->LanguageCombo),language);
+ if (feasf){
+ printf("fsa\n");
+ };
} else {
gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LanguageCombo),0);
}
@@ -276,21 +287,20 @@ void yon_interface_update(main_window *widgets){
} else gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->LayoutBindingCombo),0);
if (!yon_char_is_empty(layout)){
+ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->ManualLayoutRadio),1);
for_iter(widgets->LayoutList,&iter){
char *cur=NULL;
- gtk_tree_model_get(GTK_TREE_MODEL(widgets->LayoutList),&iter,1,&cur,-1);
+ gtk_tree_model_get(GTK_TREE_MODEL(widgets->LayoutList),&iter,0,&cur,-1);
if (strstr(layout,cur)){
- gtk_tree_store_set(widgets->LayoutList,&iter,0,1,-1);
+ gtk_tree_store_set(widgets->LayoutList,&iter,3,1,-1);
} else {
- gtk_tree_store_set(widgets->LayoutList,&iter,0,0,-1);
+ gtk_tree_store_set(widgets->LayoutList,&iter,3,0,-1);
}
}
- gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
} else {
for_iter(widgets->LayoutList,&iter){
- gtk_tree_store_set((widgets->LayoutList),&iter,0,0,-1);
+ gtk_tree_store_set((widgets->LayoutList),&iter,3,0,-1);
}
- gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
}
char *user_name = config(user_name_parameter);
@@ -1787,6 +1797,10 @@ main_window *yon_main_window_complete(){
main_window *widgets=NULL;
widgets = yon_remalloc(widgets,sizeof(main_window));
GtkBuilder *builder = gtk_builder_new_from_resource(glade_path);
+ gtk_builder_add_callback_symbol(builder,"yon_gtk_widget_set_sensitive_from_toggle_button",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button));
+ gtk_builder_add_callback_symbol(builder,"yon_gtk_toggle_button_set_inactive_from_toggle",G_CALLBACK(yon_gtk_toggle_button_set_inactive_from_toggle));
+ gtk_builder_add_callback_symbol(builder,"yon_gtk_toggle_button_set_inactive_from_entry",G_CALLBACK(yon_gtk_toggle_button_set_inactive_from_entry));
+ gtk_builder_add_callback_symbol(builder,"yon_gtk_toggle_button_set_inactive_from_combo_box",G_CALLBACK(yon_gtk_toggle_button_set_inactive_from_combo_box));
// Custom widgets configuration
widgets->builder = builder;
@@ -1986,6 +2000,7 @@ main_window *yon_main_window_complete(){
g_signal_connect(G_OBJECT(widgets->SameInstallationFormatCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),widgets->SameInstallationFilesystemTypeCombo);
// g_signal_connect(G_OBJECT(widgets->InstallationToggle),"toggled",G_CALLBACK(on_toggle_block),widgets);
+
gtk_tree_model_filter_set_visible_column(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter),0);
gtk_tree_model_filter_refilter(GTK_TREE_MODEL_FILTER(widgets->LanguagesFilter));
@@ -2047,6 +2062,7 @@ main_window *yon_main_window_complete(){
if (layout_size){
char *layout_id = yon_char_new(layout[0]);
gtk_tree_store_append(widgets->LayoutList,&iter,NULL);
+ yon_debug_output("%s\n",parsed[i]);
gtk_tree_store_set(widgets->LayoutList,&iter,0,layout[0],1,_(layout[1]),2,1,-1);
yon_char_parsed_free(layout,layout_size);
layout = yon_config_load(get_layouts_local_command(layout_id),&layout_size);
@@ -2106,6 +2122,7 @@ main_window *yon_main_window_complete(){
models[i+1] = yon_char_divide_search(models[i+1],"\n",-1);
gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(widgets->KeyboardModelCombo),models[i],_(models[i+1]));
}
+ gtk_builder_connect_signals(builder,NULL);
yon_load_proceed(YON_CONFIG_DEFAULT);
yon_interface_update(widgets);
return widgets;
diff --git a/ubinstall-gtk-keyboard.glade b/ubinstall-gtk-keyboard.glade
index c5f6ad6..8ca6152 100644
--- a/ubinstall-gtk-keyboard.glade
+++ b/ubinstall-gtk-keyboard.glade
@@ -50,13 +50,13 @@
+
+ False
+ True
+ 2
+
+
+
+
+ True
+ False
+ vertical
+ 5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+
+
+
+ False
+ True
+ 1
+
+
True
@@ -1964,10 +2114,12 @@ and help you install UBLinux on your computer
Default layout (ru)
True
+ False
True
False
True
True
+
False
@@ -1979,10 +2131,12 @@ and help you install UBLinux on your computer
Define
True
+ False
True
False
True
DefaultLayoutRadio
+
False
@@ -2000,7 +2154,6 @@ and help you install UBLinux on your computer
True
- False
False
5
@@ -2011,6 +2164,7 @@ and help you install UBLinux on your computer
True
+ False
True
LayoutsFilter
0
@@ -2057,6 +2211,7 @@ and help you install UBLinux on your computer
True
+ False
True
True
image13
@@ -2073,6 +2228,7 @@ and help you install UBLinux on your computer
True
+ False
True
True
image14
@@ -2111,7 +2267,7 @@ and help you install UBLinux on your computer
False
True
- 2
+ 3
@@ -2176,6 +2332,23 @@ and help you install UBLinux on your computer
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2186,19 +2359,21 @@ and help you install UBLinux on your computer
False
True
- 0
+ 1
True
+ False
True
Super Admin
+
True
True
- 1
+ 2
@@ -2213,6 +2388,23 @@ and help you install UBLinux on your computer
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2223,19 +2415,21 @@ and help you install UBLinux on your computer
False
True
- 0
+ 1
True
+ False
True
superadmin
+
True
True
- 1
+ 2
@@ -2250,6 +2444,24 @@ and help you install UBLinux on your computer
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2260,38 +2472,42 @@ and help you install UBLinux on your computer
False
True
- 0
+ 1
True
+ False
False
0
- Default
- Set a password
+
False
True
- 1
+ 2
True
+ False
True
False
●
******
password
+
True
True
- 2
+ 3
@@ -2306,18 +2522,37 @@ and help you install UBLinux on your computer
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
Automatic login without password prompt
True
+ False
True
False
True
+
False
True
- 0
+ 1
@@ -2332,6 +2567,24 @@ and help you install UBLinux on your computer
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2342,38 +2595,42 @@ and help you install UBLinux on your computer
False
True
- 0
+ 1
True
+ False
False
0
- Default
- Set a password
+
False
True
- 1
+ 2
True
+ False
True
False
●
******
password
+
True
True
- 2
+ 3
@@ -2400,11 +2657,16 @@ and help you install UBLinux on your computer
False
5
-
+
True
False
- Computer name:
- 0
+ False
+ True
+
+
+
+
+
False
@@ -2413,12 +2675,11 @@ and help you install UBLinux on your computer
-
- Automatically
+
True
- True
- False
- True
+ False
+ Computer name:
+ 0
False
@@ -2429,8 +2690,10 @@ and help you install UBLinux on your computer
True
+ False
True
ubstation
+
True
@@ -2438,6 +2701,22 @@ and help you install UBLinux on your computer
2
+
+
+ Automatically
+ True
+ False
+ True
+ False
+ True
+
+
+
+ False
+ True
+ 3
+
+
False
@@ -2882,6 +3161,23 @@ or continue working in the UBLinux Live environment.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2891,12 +3187,13 @@ or continue working in the UBLinux Live environment.
False
True
- 0
+ 1
True
+ False
False
1
@@ -2910,11 +3207,12 @@ or continue working in the UBLinux Live environment.
- xfs
- zfs
+
True
True
- 1
+ 2
@@ -2929,6 +3227,23 @@ or continue working in the UBLinux Live environment.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -2938,18 +3253,20 @@ or continue working in the UBLinux Live environment.
False
True
- 0
+ 1
True
+ False
True
+
True
True
- 1
+ 2
@@ -3129,42 +3446,12 @@ installed.
True
False
vertical
- 5
-
+
True
False
- 5
-
-
- True
- False
- Select device:
- 0
-
-
- False
- True
- 0
-
-
-
-
- True
- True
- True
- image36
-
-
-
- False
- True
- end
- 1
-
-
+ Choose a section:
+ 0
False
@@ -3179,17 +3466,17 @@ installed.
in
128
-
+
True
True
- DevicesList
+ PartitionsList
0
- Device
+ Section
@@ -3200,7 +3487,7 @@ installed.
- Description
+ Capacity
@@ -3211,7 +3498,7 @@ installed.
- Mark
+ Free space
@@ -3222,7 +3509,7 @@ installed.
- Size
+ File system
@@ -3233,7 +3520,7 @@ installed.
- Serial
+ Mark
@@ -3255,7 +3542,7 @@ installed.
False
True
- 0
+ 1
@@ -3263,12 +3550,42 @@ installed.
True
False
vertical
+ 5
-
+
True
False
- Choose a section:
- 0
+ 5
+
+
+ True
+ False
+ Select device:
+ 0
+
+
+ False
+ True
+ 0
+
+
+
+
+ True
+ True
+ True
+ image36
+
+
+
+ False
+ True
+ end
+ 1
+
+
False
@@ -3283,17 +3600,17 @@ installed.
in
128
-
+
True
True
- PartitionsList
+ DevicesList
0
- Section
+ Device
@@ -3304,7 +3621,7 @@ installed.
- Capacity
+ Description
@@ -3315,7 +3632,7 @@ installed.
- Free space
+ Mark
@@ -3326,7 +3643,7 @@ installed.
- File system
+ Size
@@ -3337,7 +3654,7 @@ installed.
- Mark
+ Serial
@@ -3359,7 +3676,7 @@ installed.
False
True
- 1
+ 2
@@ -3367,6 +3684,24 @@ installed.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -3376,12 +3711,13 @@ installed.
False
True
- 0
+ 1
True
+ False
True
0,0
adjustment1
@@ -3390,12 +3726,13 @@ installed.
False
True
- 1
+ 2
True
+ False
False
1
@@ -3403,11 +3740,12 @@ installed.
- Gb
- Tb
+
False
True
- 2
+ 3
@@ -3429,6 +3767,24 @@ installed.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -3438,12 +3794,13 @@ installed.
False
True
- 0
+ 1
True
+ False
False
1
@@ -3457,26 +3814,29 @@ installed.
- xfs
- zfs
+
True
True
- 1
+ 2
Format
True
+ False
True
False
True
True
+
False
True
- 2
+ 3
@@ -3491,6 +3851,23 @@ installed.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -3500,18 +3877,20 @@ installed.
False
True
- 0
+ 1
True
+ False
True
+
True
True
- 1
+ 2
@@ -3924,6 +4303,24 @@ installed.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -3933,12 +4330,13 @@ installed.
False
True
- 0
+ 1
True
+ False
False
1
@@ -3952,26 +4350,29 @@ installed.
- xfs
- zfs
+
True
True
- 1
+ 2
Format
True
+ False
True
False
True
True
+
False
True
- 2
+ 3
@@ -3986,6 +4387,23 @@ installed.
True
False
5
+
+
+ True
+ False
+ False
+ True
+
+
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -3995,18 +4413,20 @@ installed.
False
True
- 0
+ 1
True
+ False
True
+
True
True
- 1
+ 2