|
|
|
|
@ -136,13 +136,15 @@ void on_save_parameters(GtkWidget *self, template_saving_window *window){
|
|
|
|
|
free(final_command);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
|
if (window->type == YON_CONFIG_GLOBAL)
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
else if (window->type == YON_CONFIG_LOCAL)
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
else if (window->type == YON_CONFIG_BOTH)
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
|
|
|
|
|
textdomain(template_app_information.app_locale);
|
|
|
|
|
|
|
|
|
|
yon_window_config_custom_window_set(GTK_WINDOW(window->Window),"SaveWindow");
|
|
|
|
|
on_subwindow_close(self);
|
|
|
|
|
}
|
|
|
|
|
@ -150,12 +152,14 @@ void on_save_parameters(GtkWidget *self, template_saving_window *window){
|
|
|
|
|
template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
|
if (((type==YON_CONFIG_LOCAL&& template_config->load_mode==1)||(type==YON_CONFIG_GLOBAL&& template_config->load_mode==0))){
|
|
|
|
|
yon_config_save_registered(path);
|
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
|
if (type == YON_CONFIG_GLOBAL)
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
else if (type == YON_CONFIG_LOCAL)
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
else if (type == YON_CONFIG_BOTH)
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
textdomain(template_app_information.app_locale);
|
|
|
|
|
} else {
|
|
|
|
|
char *config_to_save = NULL;
|
|
|
|
|
if (type==YON_CONFIG_GLOBAL) config_to_save="global";
|
|
|
|
|
@ -431,13 +435,14 @@ template_main_window *yon_ubl_window_setup(){
|
|
|
|
|
|
|
|
|
|
template_main_window *widgets = setup_window();
|
|
|
|
|
yon_ubl_header_setup_resource(widgets->HeadOverlay,widgets->HeadBox,widgets->HeadImage,ui_banner_path);
|
|
|
|
|
|
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
|
if (yon_ubl_status_box_setup(widgets->StatusIcon,widgets->StatusBox,widgets->StatusLabel)){
|
|
|
|
|
if (getuid()!=0)
|
|
|
|
|
yon_ubl_status_box_render(ROOT_WARNING_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
else
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
}
|
|
|
|
|
textdomain(template_app_information.app_locale);
|
|
|
|
|
template_config->load_mode=1;
|
|
|
|
|
if(template_config)
|
|
|
|
|
yon_ubl_setup_sockets(widgets->PlugBox,widgets->LeftBox,widgets->RightBox,template_config->socket_id,template_config->load_socket_id,template_config->save_socket_id);
|
|
|
|
|
|