|
|
|
|
@ -1411,6 +1411,7 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
|
|
|
|
|
int fullscreen;
|
|
|
|
|
dictionary *custom_listeners;
|
|
|
|
|
dictionary *custom_parameters;
|
|
|
|
|
dictionary *deleted_parameters;
|
|
|
|
|
} __yon_main_window_config;
|
|
|
|
|
|
|
|
|
|
static GtkWindow *__yon_window_config_target_window = NULL;
|
|
|
|
|
@ -1459,6 +1460,11 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (__yon_main_window_config.deleted_parameters)
|
|
|
|
|
for_dictionaries(dict,__yon_main_window_config.deleted_parameters){
|
|
|
|
|
__yon_custom_parameter *param = yon_dictionary_get_data(dict,__yon_custom_parameter*);
|
|
|
|
|
g_key_file_remove_key(__yon_window_config_file,param->section,param->parameter_name,NULL);
|
|
|
|
|
}
|
|
|
|
|
g_key_file_save_to_file(__yon_window_config_file,__yon_window_config_path,NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1602,6 +1608,14 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(__yon_main_window_config.custom_parameters,param->parameter_name,param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_window_config_erase_custom_parameter(char *param_name, char *section){
|
|
|
|
|
__yon_custom_parameter *param = NULL;
|
|
|
|
|
param = yon_remalloc(param,sizeof(__yon_custom_parameter));
|
|
|
|
|
param->parameter_name=param_name;
|
|
|
|
|
param->section=section;
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(__yon_main_window_config.deleted_parameters,param->parameter_name,param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GtkWidget *yon_ubl_menu_item_about_new(char *buttonname){
|
|
|
|
|
GtkWidget *menu_item = gtk_menu_item_new();
|
|
|
|
|
gtk_style_context_add_class(gtk_widget_get_style_context(menu_item),"menuitembottom");
|
|
|
|
|
|