|
|
|
@ -624,13 +624,16 @@ template_saving_window *yon_exit_window_new(){
|
|
|
|
g_signal_handlers_disconnect_by_func(G_OBJECT(window->ToggleCell), G_CALLBACK(on_save_window_parameter_switched),window);
|
|
|
|
g_signal_handlers_disconnect_by_func(G_OBJECT(window->ToggleCell), G_CALLBACK(on_save_window_parameter_switched),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->SaveButton),"clicked",G_CALLBACK(gtk_main_quit),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(window->SaveButton),"clicked",G_CALLBACK(gtk_main_quit),NULL);
|
|
|
|
|
|
|
|
|
|
|
|
int current_size=0;
|
|
|
|
|
|
|
|
struct loaded_config *config_compare=NULL;
|
|
|
|
struct loaded_config *config_compare=NULL;
|
|
|
|
config_str current_config = yon_config_get_all_modified(¤t_size); // get INTERNAL config
|
|
|
|
config_compare = yon_config_get_compared(yon_config_get_last_command()); // get compare config
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int current_size=0;
|
|
|
|
|
|
|
|
config_str current_config = yon_config_get_all(¤t_size); // get INTERNAL config
|
|
|
|
|
|
|
|
|
|
|
|
struct loaded_config *current_loaded = yon_config_convert_parameter(current_config,current_size); // convert INTERNAL config into struct
|
|
|
|
struct loaded_config *current_loaded = yon_config_convert_parameter(current_config,current_size); // convert INTERNAL config into struct
|
|
|
|
|
|
|
|
|
|
|
|
yon_exit_window_loaded_config_init(window,current_loaded);
|
|
|
|
yon_save_window_loaded_config_init(window,current_loaded,config_compare);
|
|
|
|
|
|
|
|
yon_save_window_compared_config_init_unfound(window,current_loaded,config_compare);
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_save_window_destroy_if_empty(window))
|
|
|
|
if (!yon_save_window_destroy_if_empty(window))
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
|