|
|
|
@ -738,19 +738,31 @@ void on_repo_edit(GtkWidget *,main_window *widgets){
|
|
|
|
int cur_size;
|
|
|
|
int cur_size;
|
|
|
|
config_str repos = yon_char_parse(parsed[0],&cur_size,",");
|
|
|
|
config_str repos = yon_char_parse(parsed[0],&cur_size,",");
|
|
|
|
for (int i=0;i<cur_size;i++){
|
|
|
|
for (int i=0;i<cur_size;i++){
|
|
|
|
char *target = repos[i];
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_repo_path_add_path);
|
|
|
|
if (yon_char_is_empty(target)){
|
|
|
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
path_section *section = malloc(sizeof(path_section));
|
|
|
|
yon_ubl_status_highlight_incorrect(window->RepoSourceEntry);
|
|
|
|
section->PathRemovalBox = yon_gtk_builder_get_widget(builder,"PathRemovalBox");
|
|
|
|
return;
|
|
|
|
section->PathEditButton = yon_gtk_builder_get_widget(builder,"PathEditButton");
|
|
|
|
}
|
|
|
|
section->PathEntry = yon_gtk_builder_get_widget(builder,"PathEntry");
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->RepoSourceEntry),"");
|
|
|
|
section->PathRemoveButton = yon_gtk_builder_get_widget(builder,"PathRemoveButton");
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
section->TypeCombo = yon_gtk_builder_get_widget(builder,"TypeCombo");
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->SourceBox),yon_gtk_builder_get_widget(builder,"PathRemovalBox"),0,0,2);
|
|
|
|
section->edits=0;
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(builder,"PathEntry")),target);
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
if (strstr(repos[i],"@")){
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
char *type = yon_char_divide_search(repos[i],"@",-1);
|
|
|
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(section->TypeCombo),type);
|
|
|
|
|
|
|
|
free(type);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else
|
|
|
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(section->TypeCombo),4);
|
|
|
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(window->sections,(char*)target,section);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(section->PathEntry),repos[i]);
|
|
|
|
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->SourceBox),section->PathRemovalBox,0,0,2);
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),window);
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),window);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_char_parsed_free(repos,cur_size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (size>1&&!yon_char_is_empty(parsed[1])){ //siglevel
|
|
|
|
if (size>1&&!yon_char_is_empty(parsed[1])){ //siglevel
|
|
|
|
int cur_size;
|
|
|
|
int cur_size;
|
|
|
|
@ -908,18 +920,25 @@ void on_mirror_edit(GtkWidget *,main_window *widgets){
|
|
|
|
config_str parsed = yon_char_parse(parameter,&size,",");
|
|
|
|
config_str parsed = yon_char_parse(parameter,&size,",");
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
char *target = parsed[i];
|
|
|
|
char *target = parsed[i];
|
|
|
|
if (yon_char_is_empty(target)){
|
|
|
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
|
|
|
yon_ubl_status_highlight_incorrect(window->TypeEntry);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->TypeEntry),"");
|
|
|
|
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->PathBox),yon_gtk_builder_get_widget(builder,"PathRemovalBox"),0,0,2);
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(builder,"PathEntry")),target);
|
|
|
|
path_section *section = malloc(sizeof(path_section));
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
section->PathRemovalBox = yon_gtk_builder_get_widget(builder,"PathRemovalBox");
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
section->PathEditButton = yon_gtk_builder_get_widget(builder,"PathEditButton");
|
|
|
|
g_object_unref(G_OBJECT(builder));
|
|
|
|
section->PathEntry = yon_gtk_builder_get_widget(builder,"PathEntry");
|
|
|
|
|
|
|
|
section->PathRemoveButton = yon_gtk_builder_get_widget(builder,"PathRemoveButton");
|
|
|
|
|
|
|
|
section->TypeCombo = yon_gtk_builder_get_widget(builder,"TypeCombo");
|
|
|
|
|
|
|
|
section->edits=0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char *type = yon_char_divide_search(parsed[i],"@",-1);
|
|
|
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(section->TypeCombo),type);
|
|
|
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(window->sections,(char*)target,section);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(section->PathEntry),parsed[i]);
|
|
|
|
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->PathBox),section->PathRemovalBox,0,0,2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),window);
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),window);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_widget_show(window->Window);
|
|
|
|
gtk_widget_show(window->Window);
|
|
|
|
@ -996,11 +1015,11 @@ void on_repo_accept_clicked(GtkWidget *, dictionary *dict){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
int enabled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->EnabledCheck));
|
|
|
|
int enabled = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->EnabledCheck));
|
|
|
|
char *sources = "";
|
|
|
|
char *sources = "";
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(window->SourceBox));
|
|
|
|
dictionary *dact = NULL;
|
|
|
|
for (guint i=0;i<g_list_length(list);i++){
|
|
|
|
for_dictionaries (dact, window->sections){
|
|
|
|
GList *container = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(list,i)));
|
|
|
|
char *type = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(((path_section*)dact->data)->TypeCombo));
|
|
|
|
char *cur = (char*)gtk_entry_get_text(GTK_ENTRY(g_list_nth_data(container,0)));
|
|
|
|
char *cur = yon_char_unite(type?type:"",type?"@":"",(char*)gtk_entry_get_text(GTK_ENTRY(((path_section*)dact->data)->PathEntry)),NULL);
|
|
|
|
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);
|
|
|
|
sources = temp;
|
|
|
|
sources = temp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1144,16 +1163,14 @@ void on_mirror_accept(GtkWidget *,dictionary *dict){
|
|
|
|
mirror_add_window *window = yon_dictionary_get_data(dict->first->next,mirror_add_window*);
|
|
|
|
mirror_add_window *window = yon_dictionary_get_data(dict->first->next,mirror_add_window*);
|
|
|
|
char *name = (char*)gtk_entry_get_text(GTK_ENTRY(window->NameEntry));
|
|
|
|
char *name = (char*)gtk_entry_get_text(GTK_ENTRY(window->NameEntry));
|
|
|
|
char *paths = "";
|
|
|
|
char *paths = "";
|
|
|
|
GList *list = gtk_container_get_children(GTK_CONTAINER(window->PathBox));
|
|
|
|
dictionary *dact = NULL;
|
|
|
|
for (guint i=0;i<g_list_length(list);i++){
|
|
|
|
for_dictionaries (dact, window->sections){
|
|
|
|
GList *container = gtk_container_get_children(GTK_CONTAINER(g_list_nth_data(list,i)));
|
|
|
|
|
|
|
|
char *cur = (char*)gtk_entry_get_text(GTK_ENTRY(g_list_nth_data(container,0)));
|
|
|
|
char *cur = yon_char_unite(gtk_combo_box_get_active_id(GTK_COMBO_BOX(((path_section*)dact->data)->TypeCombo)),"@",(char*)gtk_entry_get_text(GTK_ENTRY(((path_section*)dact->data)->PathEntry)),NULL);
|
|
|
|
char *temp = yon_char_unite(paths,!yon_char_is_empty(paths)?",":"",cur,NULL);
|
|
|
|
char *temp = yon_char_unite(paths,!yon_char_is_empty(paths)?",":"",cur,NULL);
|
|
|
|
if (!yon_char_is_empty(paths)) free(paths);
|
|
|
|
if (!yon_char_is_empty(paths)) free(paths);
|
|
|
|
paths = temp;
|
|
|
|
paths = temp;
|
|
|
|
g_list_free(container);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
g_list_free(list);
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(window->name)&&strcmp(name,window->name)){
|
|
|
|
if (!yon_char_is_empty(window->name)&&strcmp(name,window->name)){
|
|
|
|
yon_config_remove_by_key(REPOPUBLIC_CACHE_full(window->name));
|
|
|
|
yon_config_remove_by_key(REPOPUBLIC_CACHE_full(window->name));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1261,23 +1278,48 @@ void on_password_accept(GtkWidget *,dictionary *dict){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_mirror_path_removed(GtkWidget *, GtkWidget *target){
|
|
|
|
void on_mirror_path_removed(GtkWidget *self, mirror_add_window *window){
|
|
|
|
if (GTK_IS_WIDGET(target)){
|
|
|
|
int found=0;
|
|
|
|
gtk_widget_destroy(target);
|
|
|
|
dictionary *dict = NULL;
|
|
|
|
|
|
|
|
for_dictionaries(dict, window->sections){
|
|
|
|
|
|
|
|
if (self == ((path_section*)dict->data)->PathRemoveButton){
|
|
|
|
|
|
|
|
found =1;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!found) return;
|
|
|
|
|
|
|
|
if (GTK_IS_WIDGET(((path_section*)dict->data)->PathRemovalBox)){
|
|
|
|
|
|
|
|
gtk_widget_destroy(((path_section*)dict->data)->PathRemovalBox);
|
|
|
|
|
|
|
|
window->sections = yon_dictionary_rip(dict);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_mirror_path_edit(GtkWidget*,GtkWidget *target){
|
|
|
|
void on_mirror_path_edit(GtkWidget *self,mirror_add_window *window){
|
|
|
|
GList *container = gtk_container_get_children(GTK_CONTAINER(target));
|
|
|
|
int active = 0;
|
|
|
|
if (gtk_editable_get_editable(GTK_EDITABLE(g_list_nth_data(container,0)))){
|
|
|
|
dictionary *cur = NULL;
|
|
|
|
gtk_editable_set_editable(GTK_EDITABLE(g_list_nth_data(container,0)),0);
|
|
|
|
dictionary *dict = NULL;
|
|
|
|
GtkWidget *image = gtk_button_get_image(GTK_BUTTON(g_list_nth_data(container,1)));
|
|
|
|
for_dictionaries(dict, window->sections){
|
|
|
|
gtk_entry_set_has_frame(GTK_ENTRY(g_list_nth_data(container,0)),0);
|
|
|
|
if (self == ((path_section*)dict->data)->PathEditButton){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cur = dict;
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (((path_section*)dict->data)->edits) {
|
|
|
|
|
|
|
|
active = 1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!cur||active) return;
|
|
|
|
|
|
|
|
if (gtk_editable_get_editable(GTK_EDITABLE(((path_section*)dict->data)->PathEntry))){
|
|
|
|
|
|
|
|
((path_section*)dict->data)->edits=1;
|
|
|
|
|
|
|
|
gtk_editable_set_editable(GTK_EDITABLE(((path_section*)dict->data)->PathEntry),0);
|
|
|
|
|
|
|
|
gtk_widget_set_sensitive(((path_section*)dict->data)->TypeCombo,0);
|
|
|
|
|
|
|
|
GtkWidget *image = gtk_button_get_image(GTK_BUTTON(((path_section*)dict->data)->PathEditButton));
|
|
|
|
gtk_image_set_from_icon_name(GTK_IMAGE(image),edit_icon_name,GTK_ICON_SIZE_BUTTON);
|
|
|
|
gtk_image_set_from_icon_name(GTK_IMAGE(image),edit_icon_name,GTK_ICON_SIZE_BUTTON);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
gtk_editable_set_editable(GTK_EDITABLE(g_list_nth_data(container,0)),1);
|
|
|
|
((path_section*)dict->data)->edits=0;
|
|
|
|
GtkWidget *image = gtk_button_get_image(GTK_BUTTON(g_list_nth_data(container,1)));
|
|
|
|
gtk_widget_set_sensitive(((path_section*)dict->data)->TypeCombo,1);
|
|
|
|
gtk_entry_set_has_frame(GTK_ENTRY(g_list_nth_data(container,0)),1);
|
|
|
|
gtk_editable_set_editable(GTK_EDITABLE(((path_section*)dict->data)->PathEntry),1);
|
|
|
|
|
|
|
|
GtkWidget *image = gtk_button_get_image(GTK_BUTTON(((path_section*)dict->data)->PathEditButton));
|
|
|
|
gtk_image_set_from_icon_name(GTK_IMAGE(image),accept_icon_name,GTK_ICON_SIZE_BUTTON);
|
|
|
|
gtk_image_set_from_icon_name(GTK_IMAGE(image),accept_icon_name,GTK_ICON_SIZE_BUTTON);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1289,14 +1331,26 @@ void on_mirror_path_add(GtkWidget *, mirror_add_window *window){
|
|
|
|
yon_ubl_status_highlight_incorrect(window->TypeEntry);
|
|
|
|
yon_ubl_status_highlight_incorrect(window->TypeEntry);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *type = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->TypeCombo));
|
|
|
|
|
|
|
|
char *full_name = yon_char_unite(type,"@",target,NULL);
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->TypeEntry),"");
|
|
|
|
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->PathBox),yon_gtk_builder_get_widget(builder,"PathRemovalBox"),0,0,2);
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(builder,"PathEntry")),full_name);
|
|
|
|
path_section *section = malloc(sizeof(path_section));
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
section->PathRemovalBox = yon_gtk_builder_get_widget(builder,"PathRemovalBox");
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
section->PathEditButton = yon_gtk_builder_get_widget(builder,"PathEditButton");
|
|
|
|
|
|
|
|
section->PathEntry = yon_gtk_builder_get_widget(builder,"PathEntry");
|
|
|
|
|
|
|
|
section->PathRemoveButton = yon_gtk_builder_get_widget(builder,"PathRemoveButton");
|
|
|
|
|
|
|
|
section->TypeCombo = yon_gtk_builder_get_widget(builder,"TypeCombo");
|
|
|
|
|
|
|
|
section->edits=0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(section->TypeCombo),gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->TypeCombo)));
|
|
|
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(window->sections,(char*)target,section);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(section->PathEntry),target);
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->TypeEntry),"");
|
|
|
|
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->PathBox),section->PathRemovalBox,0,0,2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),window);
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),window);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1307,14 +1361,25 @@ void on_repo_source_add(GtkWidget *, repo_add_window *window){
|
|
|
|
yon_ubl_status_highlight_incorrect(window->RepoSourceEntry);
|
|
|
|
yon_ubl_status_highlight_incorrect(window->RepoSourceEntry);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
char *type = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->RepoSourceCombo));
|
|
|
|
|
|
|
|
char *full_name = yon_char_append(type,target);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_repo_path_add_path);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
path_section *section = malloc(sizeof(path_section));
|
|
|
|
|
|
|
|
section->PathRemovalBox = yon_gtk_builder_get_widget(builder,"PathRemovalBox");
|
|
|
|
|
|
|
|
section->PathEditButton = yon_gtk_builder_get_widget(builder,"PathEditButton");
|
|
|
|
|
|
|
|
section->PathEntry = yon_gtk_builder_get_widget(builder,"PathEntry");
|
|
|
|
|
|
|
|
section->PathRemoveButton = yon_gtk_builder_get_widget(builder,"PathRemoveButton");
|
|
|
|
|
|
|
|
section->TypeCombo = yon_gtk_builder_get_widget(builder,"TypeCombo");
|
|
|
|
|
|
|
|
section->edits=0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(section->TypeCombo),gtk_combo_box_get_active_id(GTK_COMBO_BOX(window->RepoSourceCombo)));
|
|
|
|
|
|
|
|
yon_dictionary_add_or_create_if_exists_with_data(window->sections,(char*)target,section);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(section->PathEntry),target);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->RepoSourceEntry),"");
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->RepoSourceEntry),"");
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(glade_mirror_path_add_path);
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->SourceBox),section->PathRemovalBox,0,0,2);
|
|
|
|
gtk_box_pack_start(GTK_BOX(window->SourceBox),yon_gtk_builder_get_widget(builder,"PathRemovalBox"),0,0,2);
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),window);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(gtk_builder_get_object(builder,"PathEntry")),full_name);
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),window);
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathEditButton"),"clicked",G_CALLBACK(on_mirror_path_edit),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
|
|
|
|
g_signal_connect(gtk_builder_get_object(builder,"PathRemoveButton"),"clicked",G_CALLBACK(on_mirror_path_removed),gtk_builder_get_object(builder,"PathRemovalBox"));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_file_chooser_open(GtkWidget *, GtkEntry *target){
|
|
|
|
void on_file_chooser_open(GtkWidget *, GtkEntry *target){
|
|
|
|
@ -1388,6 +1453,7 @@ repo_add_window *yon_repo_add_window_new(){
|
|
|
|
window->PackageTrustAllRadio = yon_gtk_builder_get_widget(builder,"PackageTrustAllRadio");
|
|
|
|
window->PackageTrustAllRadio = yon_gtk_builder_get_widget(builder,"PackageTrustAllRadio");
|
|
|
|
window->DatabaseTrustAllRadio = yon_gtk_builder_get_widget(builder,"DatabaseTrustAllRadio");
|
|
|
|
window->DatabaseTrustAllRadio = yon_gtk_builder_get_widget(builder,"DatabaseTrustAllRadio");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->sections = NULL;
|
|
|
|
window->name=NULL;
|
|
|
|
window->name=NULL;
|
|
|
|
g_signal_connect(G_OBJECT(window->RepoSourceButton),"clicked",G_CALLBACK(on_file_chooser_open),window->RepoSourceEntry);
|
|
|
|
g_signal_connect(G_OBJECT(window->RepoSourceButton),"clicked",G_CALLBACK(on_file_chooser_open),window->RepoSourceEntry);
|
|
|
|
g_signal_connect(G_OBJECT(window->RepoSourceAddButton),"clicked",G_CALLBACK(on_repo_source_add),window);
|
|
|
|
g_signal_connect(G_OBJECT(window->RepoSourceAddButton),"clicked",G_CALLBACK(on_repo_source_add),window);
|
|
|
|
@ -1499,6 +1565,7 @@ mirror_add_window *yon_mirror_add_window_new(){
|
|
|
|
window->HeadLabel = yon_gtk_builder_get_widget(builder,"HeadLabel");
|
|
|
|
window->HeadLabel = yon_gtk_builder_get_widget(builder,"HeadLabel");
|
|
|
|
window->PathBox = yon_gtk_builder_get_widget(builder,"PathBox");
|
|
|
|
window->PathBox = yon_gtk_builder_get_widget(builder,"PathBox");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window->sections = NULL;
|
|
|
|
window->name=NULL;
|
|
|
|
window->name=NULL;
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(window->TypeButton),"clicked",G_CALLBACK(on_file_chooser_open),window->TypeEntry);
|
|
|
|
g_signal_connect(G_OBJECT(window->TypeButton),"clicked",G_CALLBACK(on_file_chooser_open),window->TypeEntry);
|
|
|
|
|