|
|
|
|
@ -495,6 +495,9 @@ void on_domain_connect(GtkWidget *self, dictionary *dict){
|
|
|
|
|
gtk_window_set_title(GTK_WINDOW(dialog->Window),DOMAIN_CONNECTING_LABEL);
|
|
|
|
|
gtk_label_set_text(GTK_LABEL(dialog->HeadLabel),DOMAIN_CONNECTING_LABEL);
|
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_connect_command(adress,login,password,final),NULL,NULL);
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf("%s\n",domain_connect_command(adress,login,password,final));
|
|
|
|
|
}
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
|
on_subwindow_close(window->Window);
|
|
|
|
|
@ -505,6 +508,9 @@ void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
|
char *target = (char*)gtk_entry_get_text(GTK_ENTRY(window->AdressEntry));
|
|
|
|
|
if (!yon_char_is_empty(target)){
|
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_info(target),NULL,NULL);
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf("%s\n",domain_info(target));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
|
}
|
|
|
|
|
@ -512,6 +518,9 @@ void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
|
void on_find_domains_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
|
domain_info_window *dialog = yon_information_window_new();
|
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command,NULL,NULL);
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf("%s\n",domains_seek_command);
|
|
|
|
|
}
|
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -523,6 +532,9 @@ void on_main_window_domain_status_clicked(GtkWidget *self, GtkEntryIconPosition
|
|
|
|
|
domain_info_window *window = yon_information_window_new();
|
|
|
|
|
gtk_widget_show(window->Window);
|
|
|
|
|
yon_terminal_integrated_start(window->ExecuteTerminal,get_domain_info_command,NULL,NULL);
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf("%s\n",get_domain_info_command);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -590,6 +602,9 @@ void on_domain_disconnect(GtkWidget *self, dictionary *dict){
|
|
|
|
|
domain_info_window *dialog = yon_information_window_new();
|
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domain_disconnect_command(adress,login,password),NULL,NULL);
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf("%s\n",domain_disconnect_command(adress,login,password));
|
|
|
|
|
}
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(widgets->DomainEntry),adress);
|
|
|
|
|
on_subwindow_close(window->Window);
|
|
|
|
|
}
|
|
|
|
|
|