@ -221,6 +221,12 @@ void on_system_autostart_clicked(GtkWidget *self, main_window *widgets){
}
void on_system_kill_confirmed ( GtkWidget * self , char * service_name ) {
if ( self ) { } ;
char * command = service_kill_command ( service_name ) ;
yon_launch ( command ) ;
}
void on_system_launch_clicked ( GtkWidget * self , main_window * widgets ) {
if ( self ) { } ;
GtkTreeIter iter ;
@ -236,9 +242,16 @@ void on_system_launch_clicked(GtkWidget *self, main_window *widgets){
yon_char_remove_last_symbol ( result [ 0 ] , ' \n ' ) ;
if ( size > 0 ) {
if ( ! strcmp ( result [ 0 ] , " active " ) ) {
gtk_list_store_set ( GTK_LIST_STORE ( widgets - > liststore2 ) , & iter , 4 , 1 , - 1 ) ;
if ( status ) {
yon_ubl_status_box_render ( SWITCH_OFF_ERROR_LABEL , BACKGROUND_IMAGE_FAIL_TYPE ) ;
dialog_confirmation_data data ;
data . action_text = STOP_SERVICE_WARMING_LABEL ( service_name ) ;
data . function = ( void * ) ( void * ) on_system_kill_confirmed ;
data . data = service_name ;
int answer = yon_confirmation_dialog_call ( self , & data ) ;
if ( answer )
gtk_list_store_set ( GTK_LIST_STORE ( widgets - > liststore2 ) , & iter , 4 , 0 , - 1 ) ;
} else {
gtk_list_store_set ( GTK_LIST_STORE ( widgets - > liststore2 ) , & iter , 4 , 1 , - 1 ) ;
}
} else {
gtk_list_store_set ( GTK_LIST_STORE ( widgets - > liststore2 ) , & iter , 4 , 0 , - 1 ) ;