|
|
|
@ -525,7 +525,7 @@ void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_find_domains_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
void on_find_domains_clicked(GtkWidget *self, main_window *window){
|
|
|
|
yon_debug_output("%s\n",domains_seek_command);
|
|
|
|
yon_debug_output("%s\n",domains_seek_command);
|
|
|
|
domain_info_window *dialog = yon_information_window_new();
|
|
|
|
domain_info_window *dialog = yon_information_window_new();
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command);
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command);
|
|
|
|
@ -566,7 +566,7 @@ gboolean on_main_window_domain_status_update(connection_window *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// gboolean yon_update_thread(GtkWidget *self, GdkEvent *event, connection_window *window){
|
|
|
|
// gboolean yon_update_thread(GtkWidget *self, GdkEvent *event, connection_window *window){
|
|
|
|
gboolean yon_update_thread(connection_window *window){
|
|
|
|
gboolean yon_update_thread(GtkWidget *self, connection_window *window){
|
|
|
|
if (!update_thread_buzy){
|
|
|
|
if (!update_thread_buzy){
|
|
|
|
update_thread_buzy=1;
|
|
|
|
update_thread_buzy=1;
|
|
|
|
pthread_t thread_id;
|
|
|
|
pthread_t thread_id;
|
|
|
|
@ -574,9 +574,6 @@ gboolean on_main_window_domain_status_update(connection_window *window){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
void remove_checking(GtkWidget *self, connection_window *window){
|
|
|
|
|
|
|
|
g_source_remove(window->timer_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
connection_window *yon_connection_window_new(){
|
|
|
|
connection_window *yon_connection_window_new(){
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_connection_path);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_connection_path);
|
|
|
|
@ -585,7 +582,6 @@ connection_window *yon_connection_window_new(){
|
|
|
|
window->AdressEntry = yon_gtk_builder_get_widget(builder,"AdressEntry");
|
|
|
|
window->AdressEntry = yon_gtk_builder_get_widget(builder,"AdressEntry");
|
|
|
|
window->HeadLabel = yon_gtk_builder_get_widget(builder,"HeadLabel");
|
|
|
|
window->HeadLabel = yon_gtk_builder_get_widget(builder,"HeadLabel");
|
|
|
|
window->StatusEntry = yon_gtk_builder_get_widget(builder,"StatusEntry");
|
|
|
|
window->StatusEntry = yon_gtk_builder_get_widget(builder,"StatusEntry");
|
|
|
|
window->FindEntry = yon_gtk_builder_get_widget(builder,"FindEntry");
|
|
|
|
|
|
|
|
window->LoginEntry = yon_gtk_builder_get_widget(builder,"LoginEntry");
|
|
|
|
window->LoginEntry = yon_gtk_builder_get_widget(builder,"LoginEntry");
|
|
|
|
window->PasswordEntry = yon_gtk_builder_get_widget(builder,"PasswordEntry");
|
|
|
|
window->PasswordEntry = yon_gtk_builder_get_widget(builder,"PasswordEntry");
|
|
|
|
window->KerberosServerEntry = yon_gtk_builder_get_widget(builder,"KerberosServerEntry");
|
|
|
|
window->KerberosServerEntry = yon_gtk_builder_get_widget(builder,"KerberosServerEntry");
|
|
|
|
@ -596,14 +592,11 @@ connection_window *yon_connection_window_new(){
|
|
|
|
window->SettingsTree = yon_gtk_builder_get_widget(builder,"SettingsTree");
|
|
|
|
window->SettingsTree = yon_gtk_builder_get_widget(builder,"SettingsTree");
|
|
|
|
window->SaveButton = yon_gtk_builder_get_widget(builder,"SaveButton");
|
|
|
|
window->SaveButton = yon_gtk_builder_get_widget(builder,"SaveButton");
|
|
|
|
window->CancelButton = yon_gtk_builder_get_widget(builder,"CancelButton");
|
|
|
|
window->CancelButton = yon_gtk_builder_get_widget(builder,"CancelButton");
|
|
|
|
|
|
|
|
window->CheckButton = yon_gtk_builder_get_widget(builder,"CheckButton");
|
|
|
|
window->list = GTK_LIST_STORE(gtk_builder_get_object(builder,"liststore1"));
|
|
|
|
window->list = GTK_LIST_STORE(gtk_builder_get_object(builder,"liststore1"));
|
|
|
|
g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(window->StatusEntry),"clicked",G_CALLBACK(on_status_clicked),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->StatusEntry),"clicked",G_CALLBACK(on_status_clicked),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->FindEntry),"clicked",G_CALLBACK(on_find_domains_clicked),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->CheckButton),"clicked",G_CALLBACK(yon_update_thread),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->Window),"destroy",G_CALLBACK(remove_checking),window);
|
|
|
|
|
|
|
|
// g_signal_connect(G_OBJECT(window->AdressEntry),"focus-out-event",G_CALLBACK(yon_update_thread),window);
|
|
|
|
|
|
|
|
// yon_update_thread(NULL,NULL,window);
|
|
|
|
|
|
|
|
window->timer_id = g_timeout_add(1000,(GSourceFunc)yon_update_thread,window);
|
|
|
|
|
|
|
|
return window;
|
|
|
|
return window;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -769,6 +762,7 @@ main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
widgets->LocaleButton = yon_gtk_builder_get_widget(builder,"getLocalesButton");
|
|
|
|
widgets->LocaleButton = yon_gtk_builder_get_widget(builder,"getLocalesButton");
|
|
|
|
widgets->LocaleEntry = yon_gtk_builder_get_widget(builder,"localeEntry");
|
|
|
|
widgets->LocaleEntry = yon_gtk_builder_get_widget(builder,"localeEntry");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
widgets->FindButton = yon_gtk_builder_get_widget(builder,"FindButton");
|
|
|
|
widgets->DomainButton = yon_gtk_builder_get_widget(builder,"DomainButton");
|
|
|
|
widgets->DomainButton = yon_gtk_builder_get_widget(builder,"DomainButton");
|
|
|
|
widgets->DomainEntry = yon_gtk_builder_get_widget(builder,"DomainEntry");
|
|
|
|
widgets->DomainEntry = yon_gtk_builder_get_widget(builder,"DomainEntry");
|
|
|
|
|
|
|
|
|
|
|
|
@ -814,6 +808,8 @@ main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->DomainEntry),"focus-out-event",G_CALLBACK(on_domain_address_save),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(widgets->DomainEntry),"focus-out-event",G_CALLBACK(on_domain_address_save),NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(widgets->FindButton),"clicked",G_CALLBACK(on_find_domains_clicked),widgets);
|
|
|
|
|
|
|
|
|
|
|
|
gtk_widget_set_size_request(widgets->Window,800,440);
|
|
|
|
gtk_widget_set_size_request(widgets->Window,800,440);
|
|
|
|
|
|
|
|
|
|
|
|
// g_timeout_add(1000,(GSourceFunc)on_check_domain_connected,widgets);
|
|
|
|
// g_timeout_add(1000,(GSourceFunc)on_check_domain_connected,widgets);
|
|
|
|
|