|
|
|
|
@ -90,6 +90,8 @@ ubl_settings_window *yon_ubl_settings_window_new(){
|
|
|
|
|
window->WorkZoneBox = yon_gtk_builder_get_widget(builder,"WorkZoneBox");
|
|
|
|
|
window->AcceptButton = yon_gtk_builder_get_widget(builder,"AcceptButton");
|
|
|
|
|
window->CancelButton = yon_gtk_builder_get_widget(builder,"CancelButton");
|
|
|
|
|
gtk_window_set_title(GTK_WINDOW(window->window),template_app_information.app_title);
|
|
|
|
|
gtk_window_set_icon_name(GTK_WINDOW(window->window),yon_char_append("com.ublinux.",template_app_information.app_tech_name));
|
|
|
|
|
return window;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -172,6 +174,23 @@ char *yon_settings_configuration_get(char *id){
|
|
|
|
|
|
|
|
|
|
//signnals section
|
|
|
|
|
|
|
|
|
|
void __yon_on_boolean_parameter_toggled(GtkToggleButton *self ,char *id){
|
|
|
|
|
yon_configuration_parameters *current = (yon_configuration_parameters*)yon_dictionary_get((dictionary**)&__yon_settings_parameters,id);
|
|
|
|
|
if (current){
|
|
|
|
|
current->data= gtk_toggle_button_get_active(self)?(void*)1:(void*)0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_confuguration_combo_box_changed(GtkComboBox *self, char *id){
|
|
|
|
|
yon_configuration_parameters *cur = (yon_configuration_parameters*)yon_dictionary_get((dictionary**)&__yon_settings_parameters,id);
|
|
|
|
|
if (cur){
|
|
|
|
|
char *cur_value = yon_char_new((char*)gtk_combo_box_get_active_id(self));
|
|
|
|
|
if (yon_window_config_check_init()){
|
|
|
|
|
yon_window_config_add_instant_parameter(id,"settings",cur_value,YON_TYPE_STRING);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void __yon_on_ubl_settings_window_open(){
|
|
|
|
|
if (!__yon_settings_parameters) return;
|
|
|
|
|
ubl_settings_window *window = yon_ubl_settings_window_new();
|
|
|
|
|
@ -201,23 +220,6 @@ void __yon_on_ubl_settings_window_open(){
|
|
|
|
|
gtk_widget_show(window->window);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void __yon_on_boolean_parameter_toggled(GtkToggleButton *self ,char *id){
|
|
|
|
|
yon_configuration_parameters *current = (yon_configuration_parameters*)yon_dictionary_get((dictionary**)&__yon_settings_parameters,id);
|
|
|
|
|
if (current){
|
|
|
|
|
current->data= gtk_toggle_button_get_active(self)?(void*)1:(void*)0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_confuguration_combo_box_changed(GtkComboBox *self, char *id){
|
|
|
|
|
yon_configuration_parameters *cur = (yon_configuration_parameters*)yon_dictionary_get((dictionary**)&__yon_settings_parameters,id);
|
|
|
|
|
if (cur){
|
|
|
|
|
char *cur_value = yon_char_new((char*)gtk_combo_box_get_active_id(self));
|
|
|
|
|
if (yon_window_config_check_init()){
|
|
|
|
|
yon_window_config_add_instant_parameter(id,"settings",cur_value,YON_TYPE_STRING);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//init section
|
|
|
|
|
|
|
|
|
|
void yon_configuration_window_add_combo_box_parameter(enum CONFIGURATION_PARAMETER_TYPE type, char *id, char *label, GCallback func, gpointer data,...){
|
|
|
|
|
|