|
|
|
@ -537,7 +537,6 @@ void on_inspector_open(GtkWidget *self, main_window *widgets){
|
|
|
|
|
yon_char_parsed_free(window->journal_paths,window->journal_size);
|
|
|
|
|
window->journal_paths=final;
|
|
|
|
|
window->journal_size=final_size;
|
|
|
|
|
// char *new_parsed = ;
|
|
|
|
|
window->terminals = NULL;
|
|
|
|
|
if (strcmp(name,"journald")){
|
|
|
|
|
window->last_mode=-1;
|
|
|
|
@ -636,7 +635,6 @@ void on_logrotate_configuration_path_filechooser_save(GtkWidget *self, dictionar
|
|
|
|
|
else
|
|
|
|
|
filename=yon_char_append(filename,"*");
|
|
|
|
|
}
|
|
|
|
|
// gtk_file_chooser_get_
|
|
|
|
|
GtkTreeIter iter, itar;
|
|
|
|
|
int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&itar);
|
|
|
|
|
int deleted=0;
|
|
|
|
@ -2245,10 +2243,7 @@ void on_log_path_filechooser_open(GtkWidget *self, GtkEntry *entry){
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(dict,"dialog",dialog);
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(dialog->CancelButton),"clicked",G_CALLBACK(on_close_subwindow),"FileDialog");
|
|
|
|
|
// if (self==window->LogPathAddButton)
|
|
|
|
|
g_signal_connect(G_OBJECT(dialog->AcceptButton),"clicked",G_CALLBACK(on_log_path_filechooser_save),dict);
|
|
|
|
|
// else if (self==window->LogPathEditButton)
|
|
|
|
|
// g_signal_connect(G_OBJECT(dialog->AcceptButton),"clicked",G_CALLBACK(on_log_path_filechooser_save_edit),dict);
|
|
|
|
|
g_signal_connect(G_OBJECT(dialog->FileChooser),"selection-changed",G_CALLBACK(on_log_path_filechooser_selection_changed),dialog);
|
|
|
|
|
g_signal_connect(G_OBJECT(dialog->FileOrDirCheck),"toggled",G_CALLBACK(on_log_path_filechooser_toggled),dialog);
|
|
|
|
|
gtk_widget_show(dialog->FileChooser);
|
|
|
|
@ -2257,7 +2252,6 @@ void on_log_path_filechooser_open(GtkWidget *self, GtkEntry *entry){
|
|
|
|
|
void on_log_path_choose(GtkWidget *self,add_log_window *window){
|
|
|
|
|
GtkWidget *parent = gtk_widget_get_parent(self);
|
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(parent));
|
|
|
|
|
// gtk_entry_set_text((GtkEntry*)g_list_nth_data(list,1),gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)));
|
|
|
|
|
on_log_path_filechooser_open(NULL,(GtkEntry*)g_list_nth_data(list,1));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|