|
|
|
@ -210,6 +210,13 @@ void yon_configuration_window_add_combo_box_parameter(enum CONFIGURATION_PARAMET
|
|
|
|
config_str variants = NULL;
|
|
|
|
config_str variants = NULL;
|
|
|
|
while ((cur=va_arg(args,char*))){
|
|
|
|
while ((cur=va_arg(args,char*))){
|
|
|
|
yon_char_parsed_add_or_create_if_exists(variants,&size,cur);
|
|
|
|
yon_char_parsed_add_or_create_if_exists(variants,&size,cur);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
char *target=NULL;
|
|
|
|
|
|
|
|
yon_window_config_get_parameter("settings",id,&target,YON_TYPE_STRING);
|
|
|
|
|
|
|
|
if (yon_char_is_empty(target)){
|
|
|
|
|
|
|
|
yon_window_config_add_instant_parameter(id,"settings",variants[0],YON_TYPE_STRING);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
yon_char_parsed_add_or_create_if_exists(variants,&size,NULL);
|
|
|
|
yon_char_parsed_add_or_create_if_exists(variants,&size,NULL);
|
|
|
|
yon_configuration_parameters *parameter = (yon_configuration_parameters*)yon_dictionary_get_last((dictionary*)__yon_settings_parameters);
|
|
|
|
yon_configuration_parameters *parameter = (yon_configuration_parameters*)yon_dictionary_get_last((dictionary*)__yon_settings_parameters);
|
|
|
|
@ -222,11 +229,9 @@ void yon_configuration_window_add_combo_box_parameter(enum CONFIGURATION_PARAMET
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
char *yon_settings_configuration_get(char *id){
|
|
|
|
char *yon_settings_configuration_get(char *id){
|
|
|
|
yon_configuration_parameters *cur = (yon_configuration_parameters*)yon_dictionary_get((dictionary**)&__yon_settings_parameters,id);
|
|
|
|
char *return_val = NULL;
|
|
|
|
if (cur){
|
|
|
|
yon_window_config_get_parameter("settings",id,&return_val,YON_TYPE_STRING);
|
|
|
|
return cur->value;
|
|
|
|
return return_val;
|
|
|
|
}
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_confuguration_combo_box_changed(GtkComboBox *self, char *id){
|
|
|
|
void on_confuguration_combo_box_changed(GtkComboBox *self, char *id){
|
|
|
|
|