|
|
|
@ -497,10 +497,12 @@ void on_domain_connect(GtkWidget *self, dictionary *dict){
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_connect_command(adress,login,password,final),NULL,NULL);
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_connect_command(adress,login,password,final),NULL,NULL);
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
printf("%s\n",domain_connect_command(adress,login,password,final));
|
|
|
|
printf("%s\n",domain_connect_command(adress,login,password,final));
|
|
|
|
|
|
|
|
int size_;
|
|
|
|
|
|
|
|
config_str test = yon_config_load(domain_connect_command(adress,login,password,final),&size_);
|
|
|
|
|
|
|
|
printf("%s\n",yon_char_parsed_to_string(test,size_,"\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
on_subwindow_close(window->Window);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
@ -510,6 +512,9 @@ void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_info(target),NULL,NULL);
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_info(target),NULL,NULL);
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
printf("%s\n",domain_info(target));
|
|
|
|
printf("%s\n",domain_info(target));
|
|
|
|
|
|
|
|
int size_;
|
|
|
|
|
|
|
|
config_str test = yon_config_load(domain_info(target),&size_);
|
|
|
|
|
|
|
|
printf("%s\n",yon_char_parsed_to_string(test,size_,"\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
@ -520,6 +525,9 @@ void on_find_domains_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command,NULL,NULL);
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command,NULL,NULL);
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
printf("%s\n",domains_seek_command);
|
|
|
|
printf("%s\n",domains_seek_command);
|
|
|
|
|
|
|
|
int size_;
|
|
|
|
|
|
|
|
config_str test = yon_config_load(domains_seek_command,&size_);
|
|
|
|
|
|
|
|
printf("%s\n",yon_char_parsed_to_string(test,size_,"\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -534,6 +542,9 @@ void on_main_window_domain_status_clicked(GtkWidget *self, GtkEntryIconPosition
|
|
|
|
yon_terminal_integrated_start(window->ExecuteTerminal,get_domain_info_command,NULL,NULL);
|
|
|
|
yon_terminal_integrated_start(window->ExecuteTerminal,get_domain_info_command,NULL,NULL);
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
printf("%s\n",get_domain_info_command);
|
|
|
|
printf("%s\n",get_domain_info_command);
|
|
|
|
|
|
|
|
int size_;
|
|
|
|
|
|
|
|
config_str test = yon_config_load(get_domain_info_command,&size_);
|
|
|
|
|
|
|
|
printf("%s\n",yon_char_parsed_to_string(test,size_,"\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -604,6 +615,9 @@ void on_domain_disconnect(GtkWidget *self, dictionary *dict){
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_disconnect_command(adress,login,password),NULL,NULL);
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_disconnect_command(adress,login,password),NULL,NULL);
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
printf("%s\n",domain_disconnect_command(adress,login,password));
|
|
|
|
printf("%s\n",domain_disconnect_command(adress,login,password));
|
|
|
|
|
|
|
|
int size_;
|
|
|
|
|
|
|
|
config_str test = yon_config_load(domain_disconnect_command(adress,login,password),&size_);
|
|
|
|
|
|
|
|
printf("%s\n",yon_char_parsed_to_string(test,size_,"\n"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
on_subwindow_close(window->Window);
|
|
|
|
on_subwindow_close(window->Window);
|
|
|
|
|