|
|
|
|
@ -381,7 +381,12 @@ void on_language_changed(GtkComboBox *self, main_window *widgets){
|
|
|
|
|
|
|
|
|
|
void on_terminal_command_ended(VteTerminal *terminal, gint status, domain_info_window *window){
|
|
|
|
|
textdomain(template_ui_LocaleName);
|
|
|
|
|
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"success",SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
yon_ubl_status_box_despawn_infinite(GTK_CONTAINER(window->StatusBox));
|
|
|
|
|
if (!status)
|
|
|
|
|
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"success",yon_char_get_localised_from_lib(SUCCESS_LABEL),BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
else {
|
|
|
|
|
yon_ubl_status_box_spawn_infinite(GTK_CONTAINER(window->StatusBox),"failure",yon_char_get_localised_from_lib(FAIL_LABEL),BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
}
|
|
|
|
|
textdomain(LocaleName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -447,11 +452,12 @@ void on_status_clicked(GtkWidget *self, connection_window *window){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_find_domains_clicked(GtkWidget *self, main_window *window){
|
|
|
|
|
yon_debug_output("%s\n",domains_seek_command);
|
|
|
|
|
|
|
|
|
|
domain_info_window *dialog = yon_information_window_new();
|
|
|
|
|
yon_terminal_integrated_start(dialog->ExecuteTerminal,domains_seek_command);
|
|
|
|
|
gtk_window_set_transient_for(GTK_WINDOW(dialog->Window),GTK_WINDOW(window->Window));
|
|
|
|
|
gtk_widget_show(dialog->Window);
|
|
|
|
|
// yon_terminal_window_launch(GTK_WINDOW(window->Window),yon_debug_output("%s\n",domains_seek_command),yon_char_get_localised_from_lib(SUCCESS_LABEL),yon_char_get_localised_from_lib(FAIL_LABEL));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -494,7 +500,6 @@ gboolean on_main_window_domain_status_update(connection_window *window){
|
|
|
|
|
if (!update_thread_buzy){
|
|
|
|
|
update_thread_buzy=1;
|
|
|
|
|
g_mutex_unlock(&main_config.ThreadMutex);
|
|
|
|
|
pthread_t thread_id;
|
|
|
|
|
g_idle_add((GSourceFunc)on_main_window_domain_status_update,window);
|
|
|
|
|
} else {
|
|
|
|
|
g_mutex_unlock(&main_config.ThreadMutex);
|
|
|
|
|
|