|
|
|
@ -117,14 +117,16 @@ void on_file_chooser_entry_changed(GtkEntry *self, file_chooser_window *window){
|
|
|
|
void on_file_chooser_file_activate(GtkFileChooser *self, repo_add_window *window){
|
|
|
|
void on_file_chooser_file_activate(GtkFileChooser *self, repo_add_window *window){
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GSList *list = gtk_file_chooser_get_filenames(self);
|
|
|
|
GSList *list = gtk_file_chooser_get_filenames(self);
|
|
|
|
for (int i=0;i<g_slist_length(list);i++){
|
|
|
|
if (list){
|
|
|
|
char *path = g_slist_nth_data(list,i);
|
|
|
|
for (int i=0;i<g_slist_length(list);i++){
|
|
|
|
char *filename = yon_char_new(path);
|
|
|
|
char *path = g_slist_nth_data(list,i);
|
|
|
|
free(yon_char_divide(filename,yon_char_find_last(filename,'/')));
|
|
|
|
char *filename = yon_char_new(path);
|
|
|
|
gtk_list_store_append(window->PackagesList,&iter);
|
|
|
|
free(yon_char_divide(filename,yon_char_find_last(filename,'/')));
|
|
|
|
gtk_list_store_set(window->PackagesList,&iter,1,filename,2,path,-1);
|
|
|
|
gtk_list_store_append(window->PackagesList,&iter);
|
|
|
|
free(filename);
|
|
|
|
gtk_list_store_set(window->PackagesList,&iter,1,filename,2,path,-1);
|
|
|
|
g_slist_free(list);
|
|
|
|
free(filename);
|
|
|
|
|
|
|
|
g_slist_free(list);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_widget_destroy(gtk_widget_get_toplevel(GTK_WIDGET(self)));
|
|
|
|
gtk_widget_destroy(gtk_widget_get_toplevel(GTK_WIDGET(self)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1530,7 +1532,9 @@ void yon_combo_box_text_set_signs(GtkComboBoxText *target){
|
|
|
|
gtk_combo_box_text_append_text(target,DO_NOT_SIGN_LABEL);
|
|
|
|
gtk_combo_box_text_append_text(target,DO_NOT_SIGN_LABEL);
|
|
|
|
for (int i=0;i<main_config.signs_size;i++){
|
|
|
|
for (int i=0;i<main_config.signs_size;i++){
|
|
|
|
char *temp = yon_char_new(main_config.signs[i]);
|
|
|
|
char *temp = yon_char_new(main_config.signs[i]);
|
|
|
|
|
|
|
|
if (strstr(temp,"<"))
|
|
|
|
free(yon_char_divide_search(temp,"<",-1));
|
|
|
|
free(yon_char_divide_search(temp,"<",-1));
|
|
|
|
|
|
|
|
if (strstr(temp,">"))
|
|
|
|
yon_char_remove_last_symbol(temp,'>');
|
|
|
|
yon_char_remove_last_symbol(temp,'>');
|
|
|
|
gtk_combo_box_text_append(target,temp,main_config.signs[i]);
|
|
|
|
gtk_combo_box_text_append(target,temp,main_config.signs[i]);
|
|
|
|
free(temp);
|
|
|
|
free(temp);
|
|
|
|
|