|
|
|
@ -1208,6 +1208,12 @@ void on_logrotate_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
switch(email_active){
|
|
|
|
|
case 1:
|
|
|
|
|
char *adress = (char*)gtk_entry_get_text(GTK_ENTRY(window->EmailEntry));
|
|
|
|
|
char *error = yon_gtk_entry_check_restricted(GTK_ENTRY(window->EmailEntry));
|
|
|
|
|
if (!yon_char_is_empty(error)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),error,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(window->EmailEntry);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (!yon_char_is_empty(adress)){
|
|
|
|
|
mail=yon_char_append("mail ", adress);
|
|
|
|
|
}
|
|
|
|
@ -2934,6 +2940,8 @@ void yon_main_window_complete(template_main_window **window){
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->ServicesStartStopButton),"clicked",G_CALLBACK(on_start_stop_clicked),widgets);
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->ServicesEnableDisableButton),"clicked",G_CALLBACK(on_enable_disable_clicked),widgets);
|
|
|
|
|
|
|
|
|
|
yon_rmb_menu_setup(widgets->MainTree,(RmbCheck)gtk_widget_get_sensitive,widgets->MainTree,CONFIGURE_LOG_LABEL,edit_icon_name,G_CALLBACK(on_log_edit),widgets,ADD_LOG_LABEL,add_icon_name,G_CALLBACK(on_log_add),widgets,REMOVE_LOG_LABEL,remove_icon_name,G_CALLBACK(on_log_remove),widgets,NULL);
|
|
|
|
|
// yon_rmb_menu_setup(widgets->ServicesTree,(RmbCheck)gtk_widget_get_sensitive,widgets->MainTree,CONFIGURE_LOG_LABEL,edit_icon_name,G_CALLBACK(on_log_edit),widgets,ADD_LOG_LABEL,add_icon_name,G_CALLBACK(on_log_add),widgets,REMOVE_LOG_LABEL,remove_icon_name,G_CALLBACK(on_log_remove),widgets,NULL);
|
|
|
|
|
gtk_widget_show(widgets->Window);
|
|
|
|
|
|
|
|
|
|
yon_window_config_setup(GTK_WINDOW(widgets->Window));
|
|
|
|
|