Removed unwanted comments

pull/80/head
Ivan Yartsev 2 years ago
parent 08a2e4866b
commit 3ebb5a7fa4

@ -537,7 +537,6 @@ void on_inspector_open(GtkWidget *self, main_window *widgets){
yon_char_parsed_free(window->journal_paths,window->journal_size); yon_char_parsed_free(window->journal_paths,window->journal_size);
window->journal_paths=final; window->journal_paths=final;
window->journal_size=final_size; window->journal_size=final_size;
// char *new_parsed = ;
window->terminals = NULL; window->terminals = NULL;
if (strcmp(name,"journald")){ if (strcmp(name,"journald")){
window->last_mode=-1; window->last_mode=-1;
@ -636,7 +635,6 @@ void on_logrotate_configuration_path_filechooser_save(GtkWidget *self, dictionar
else else
filename=yon_char_append(filename,"*"); filename=yon_char_append(filename,"*");
} }
// gtk_file_chooser_get_
GtkTreeIter iter, itar; GtkTreeIter iter, itar;
int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&itar); int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&itar);
int deleted=0; 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); 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"); 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); 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->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); g_signal_connect(G_OBJECT(dialog->FileOrDirCheck),"toggled",G_CALLBACK(on_log_path_filechooser_toggled),dialog);
gtk_widget_show(dialog->FileChooser); 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){ void on_log_path_choose(GtkWidget *self,add_log_window *window){
GtkWidget *parent = gtk_widget_get_parent(self); GtkWidget *parent = gtk_widget_get_parent(self);
GList *list = gtk_container_get_children(GTK_CONTAINER(parent)); 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)); on_log_path_filechooser_open(NULL,(GtkEntry*)g_list_nth_data(list,1));
} }

Loading…
Cancel
Save