Added status messages for loading

pull/14/head
parent c11869d844
commit 018710b2ea

@ -74,12 +74,18 @@ void yon_interface_update(main_window *widgets){
void on_config_local_load(GtkWidget *self, main_window *widgets){
yon_load_proceed(YON_CONFIG_LOCAL);
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
main_config.load_mode=1;
yon_interface_update(widgets);
}
void on_config_global_load(GtkWidget *self, main_window *widgets){
yon_load_proceed(YON_CONFIG_GLOBAL);
textdomain(template_ui_LocaleName);
yon_ubl_status_box_render(GLOBAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
textdomain(LocaleName);
main_config.load_mode=0;
yon_interface_update(widgets);
}
@ -1289,6 +1295,8 @@ void on_main_delete(GtkWidget *self, main_window *widgets){
char *name;
gtk_tree_model_get(model,&iter,2,&name,-1);
yon_config_remove_by_key(USERADD(name));
yon_config_remove_by_key(USERADD_SYNC(name));
yon_config_remove_by_key(USERSHADOW(name));
gtk_list_store_remove(GTK_LIST_STORE(model),&iter);
}
} else {

@ -82,6 +82,7 @@
#define ADDITIONAL_CONFIGURATION_LABEL _("Additional configuration")
//ubl-settings-usergroups-group.glade
#define DEFAULT_GROUPS_TITLE_LABEL _("Default groups")
#define GROUPS_TITLE_LABEL _("Choose groups")
#define GROUP_USERS_TITLE_LABEL _("Choose users")

Loading…
Cancel
Save