|
|
|
|
@ -508,23 +508,11 @@ struct loaded_config *yon_config_get_compared(char *command){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
char *yon_custom_config_init(GtkFileChooserAction type){
|
|
|
|
|
filechooser_window *dialog = yon_file_chooser_window_new(type);
|
|
|
|
|
filechooser_window *dialog = yon_config_file_chooser_window_new(type);
|
|
|
|
|
gtk_widget_hide(dialog->ChooseFolderCheck);
|
|
|
|
|
|
|
|
|
|
yon_gtk_window_setup(GTK_WINDOW(dialog->Window),NULL,template_app_information.app_title,yon_char_unite("com.ublinux.",template_app_information.app_tech_name,NULL),"ConfigFilechooserWindow");
|
|
|
|
|
gtk_label_set_text(GTK_LABEL(dialog->HeaderTopic),template_app_information.app_title);
|
|
|
|
|
GtkFileFilter *filter = gtk_file_filter_new();
|
|
|
|
|
gtk_file_filter_add_pattern(filter,"*.ini");
|
|
|
|
|
gtk_file_filter_set_name(filter, "*.ini");
|
|
|
|
|
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog),filter);
|
|
|
|
|
GtkFileFilter *filter_json = gtk_file_filter_new();
|
|
|
|
|
gtk_file_filter_add_pattern(filter_json,"*.json");
|
|
|
|
|
gtk_file_filter_set_name(filter_json, "*.json");
|
|
|
|
|
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog),filter_json);
|
|
|
|
|
GtkFileFilter *filter_yaml = gtk_file_filter_new();
|
|
|
|
|
gtk_file_filter_add_pattern(filter_yaml,"*.yaml");
|
|
|
|
|
gtk_file_filter_set_name(filter_yaml, "*.yaml");
|
|
|
|
|
gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog),filter_yaml);
|
|
|
|
|
if (type==GTK_FILE_CHOOSER_ACTION_SAVE){
|
|
|
|
|
// yon_file_chooser_set_button_label(yon_char_get_localised_from_lib(LOAD_CONFIG_LABEL));
|
|
|
|
|
|
|
|
|
|
|