|
|
|
|
@ -1740,10 +1740,15 @@ mirror_configure_window *yon_mirror_configure_window_new(){
|
|
|
|
|
|
|
|
|
|
void on_mirror_type_changed(GtkComboBox *self, mirror_add_window *window){
|
|
|
|
|
int active = gtk_combo_box_get_active(self);
|
|
|
|
|
if (active == 2){
|
|
|
|
|
gtk_widget_set_sensitive(window->TypeButton,1);
|
|
|
|
|
} else {
|
|
|
|
|
if (active == 0){
|
|
|
|
|
gtk_widget_set_sensitive(window->TypeButton,0);
|
|
|
|
|
gtk_entry_set_placeholder_text(GTK_ENTRY(window->TypeEntry),"http://repo.ublinux.ru/2405");
|
|
|
|
|
} else if (active == 1){
|
|
|
|
|
gtk_widget_set_sensitive(window->TypeButton,0);
|
|
|
|
|
gtk_entry_set_placeholder_text(GTK_ENTRY(window->TypeEntry),"http://proxy.localnet.ru:8080");
|
|
|
|
|
} else if (active == 2){
|
|
|
|
|
gtk_widget_set_sensitive(window->TypeButton,1);
|
|
|
|
|
gtk_entry_set_placeholder_text(GTK_ENTRY(window->TypeEntry),"/etc/pacman.d/reflector_mirrorlis");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|