|
|
|
|
@ -15,6 +15,7 @@ gtk_revealer_set_reveal_child(GTK_REVEALER(widgets->TerminalMoreRevieler),active
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gboolean on_command_execute_success(GtkWidget *self,gint status,main_window *widgets){
|
|
|
|
|
yon_install_buttons_set_sensitive(widgets,1);
|
|
|
|
|
vte_terminal_set_input_enabled(VTE_TERMINAL(self),0);
|
|
|
|
|
g_mutex_lock(&main_config.progress_mutex);
|
|
|
|
|
main_config.progress_active=0;
|
|
|
|
|
@ -31,14 +32,13 @@ gboolean on_command_execute_success(GtkWidget *self,gint status,main_window *wid
|
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// gboolean on_terminal_check_progress(GtkWidget *,main_window *widgets){
|
|
|
|
|
gboolean on_terminal_check_progress(main_window *widgets){
|
|
|
|
|
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel));
|
|
|
|
|
g_mutex_lock(&main_config.progress_mutex);
|
|
|
|
|
if (!main_config.progress_active){
|
|
|
|
|
g_mutex_unlock(&main_config.progress_mutex);
|
|
|
|
|
return G_SOURCE_REMOVE;
|
|
|
|
|
}
|
|
|
|
|
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(widgets->TerminalInfoLabel));
|
|
|
|
|
g_mutex_unlock(&main_config.progress_mutex);
|
|
|
|
|
return G_SOURCE_CONTINUE;
|
|
|
|
|
}
|
|
|
|
|
|