|
|
|
@ -682,12 +682,12 @@ void on_mirror_remove_accept(GtkWidget *, main_window *widgets){
|
|
|
|
void on_repositories_remove_accept(GtkWidget *, main_window *widgets){
|
|
|
|
void on_repositories_remove_accept(GtkWidget *, main_window *widgets){
|
|
|
|
GtkTreeModel *model=NULL;
|
|
|
|
GtkTreeModel *model=NULL;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->RepositoriesTree)),&model,&iter)) {
|
|
|
|
if (!gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->RepositoriesTree)),&model,&iter)) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *repo;
|
|
|
|
char *repo;
|
|
|
|
gtk_tree_model_get(model,&iter,1,&repo,-1);
|
|
|
|
gtk_tree_model_get(model,&iter,1,&repo,-1);
|
|
|
|
yon_config_remove_by_key(repo);
|
|
|
|
yon_config_remove_by_key(REPOSITORY(repo));
|
|
|
|
yon_interface_update(widgets);
|
|
|
|
yon_interface_update(widgets);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -920,9 +920,6 @@ void on_repo_accept_clicked(GtkWidget *, dictionary *dict){
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(window->SourceBox));
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(window->SourceBox));
|
|
|
|
for (guint i=0;i<g_list_length(list);i++){
|
|
|
|
for (guint i=0;i<g_list_length(list);i++){
|
|
|
|
GList *container = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(list,i)));
|
|
|
|
GList *container = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(list,i)));
|
|
|
|
// if (gtk_entry_get_has_frame(GTK_ENTRY(g_list_nth_data(container,0)))){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
char *cur = (char*)gtk_entry_get_text(GTK_ENTRY(g_list_nth_data(container,0)));
|
|
|
|
char *cur = (char*)gtk_entry_get_text(GTK_ENTRY(g_list_nth_data(container,0)));
|
|
|
|
char *temp = yon_char_unite(sources,yon_char_is_empty(sources)?"":",",cur,NULL);
|
|
|
|
char *temp = yon_char_unite(sources,yon_char_is_empty(sources)?"":",",cur,NULL);
|
|
|
|
if (!yon_char_is_empty(sources)) free(sources);
|
|
|
|
if (!yon_char_is_empty(sources)) free(sources);
|
|
|
|
@ -970,12 +967,6 @@ void on_repo_accept_clicked(GtkWidget *, dictionary *dict){
|
|
|
|
sign_level_condiition="DatabaseTrustAll";
|
|
|
|
sign_level_condiition="DatabaseTrustAll";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// int usage_level_default = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsageDefaultCheck));
|
|
|
|
|
|
|
|
// int usage_level_enable_update = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsageEnableUpdateCheck));
|
|
|
|
|
|
|
|
// int usage_level_enable_search = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsageEnableSearchCheck));
|
|
|
|
|
|
|
|
// int usage_level_enable_install = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsageEnableInsallCheck));
|
|
|
|
|
|
|
|
// int usage_level_sysupgrade = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsageSysupgradeCheck));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char *final = yon_char_unite(sources,";",sign_level_package,",",sign_level_condiition,";",";",enabled?"":"disable",NULL);
|
|
|
|
char *final = yon_char_unite(sources,";",sign_level_package,",",sign_level_condiition,";",";",enabled?"":"disable",NULL);
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(window->name)&&strcmp(repo_name,window->name)){
|
|
|
|
if (!yon_char_is_empty(window->name)&&strcmp(repo_name,window->name)){
|
|
|
|
|