Added placeholder text for mirror publication

pull/97/head
parent 3ce66d3955
commit f3c66a9fd9

@ -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");
}
}

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<!-- Generated with glade 3.40.0 -->
<interface domain="ubl-settings-update">
<requires lib="gtk+" version="3.24"/>
<!-- interface-css-provider-path ubl-settings-update.css -->
@ -162,6 +162,7 @@ mirrorlist - mirrors file, make sure server URL is NOT included in this file! Si
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="tooltip-text" translatable="yes">Resource link of file path</property>
<property name="placeholder-text" translatable="yes">http://repo.ublinux.ru/2405</property>
</object>
<packing>
<property name="expand">True</property>

Loading…
Cancel
Save