Fixed bug, caused preventing of deleting any log path from monitoring logs

pull/62/head
parent 499fc99e7a
commit 366aae7da3

@ -1949,14 +1949,16 @@ void on_log_edit(GtkWidget *self,main_window *widgets){
GtkWidget *RemoveButton = yon_gtk_builder_get_widget(builder,"RemoveButton"); GtkWidget *RemoveButton = yon_gtk_builder_get_widget(builder,"RemoveButton");
if (protected<protect){ if (protected<protect){
gtk_widget_set_sensitive(RemoveButton,0); gtk_widget_set_sensitive(RemoveButton,0);
gtk_widget_set_sensitive(entry,0);
gtk_widget_set_sensitive(SearchButton,0);
g_signal_connect(G_OBJECT(RemoveButton),"clicked",G_CALLBACK(on_log_path_remove),window);
g_signal_connect(G_OBJECT(SearchButton),"clicked",G_CALLBACK(on_log_path_choose),window);
protected++; protected++;
} }
if (!strcmp(name,"journald")) { if (!strcmp(name,"journald")) {
gtk_widget_hide(AppendButton); gtk_widget_hide(AppendButton);
gtk_widget_hide(RemoveButton); gtk_widget_hide(RemoveButton);
} }
gtk_widget_set_sensitive(entry,0);
gtk_widget_set_sensitive(SearchButton,0);
gtk_entry_set_text(GTK_ENTRY(entry),paths_parsed[i]); gtk_entry_set_text(GTK_ENTRY(entry),paths_parsed[i]);
gtk_box_pack_start(GTK_BOX(window->LogPathsBox),box,0,0,5); gtk_box_pack_start(GTK_BOX(window->LogPathsBox),box,0,0,5);
last = AppendButton; last = AppendButton;

@ -1711,7 +1711,7 @@ void yon_terminal_integrated_start(GtkWidget *terminal, char* command, void *end
vte_terminal_set_size(VTE_TERMINAL(terminal),10,15); vte_terminal_set_size(VTE_TERMINAL(terminal),10,15);
VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL); VtePty *pty = vte_pty_new_sync(VTE_PTY_DEFAULT,NULL,NULL);
vte_terminal_set_pty(VTE_TERMINAL(terminal),pty); vte_terminal_set_pty(VTE_TERMINAL(terminal),pty);
char *install_command=yon_char_unite("tput cup 0 0 && tput ed; ",command," ; sleep 5;exit 0","\n",NULL); char *install_command=yon_char_unite("tput cup 0 0 && tput ed; ",command," ; sleep 5; stty -echo; unset PS1","\n",NULL);
if(endwork_function) if(endwork_function)
g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument); g_signal_connect(G_OBJECT(terminal), "child-exited", G_CALLBACK(endwork_function), endwork_function_argument);
vte_terminal_spawn_async(VTE_TERMINAL(terminal), vte_terminal_spawn_async(VTE_TERMINAL(terminal),

Loading…
Cancel
Save