From f3c66a9fd98d512ab241f0389f9cc5b8e0a2faa3 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Fri, 21 Feb 2025 17:52:04 +0600 Subject: [PATCH] Added placeholder text for mirror publication --- source/ubl-settings-update.c | 11 ++++++++--- ubl-settings-update-mirror-add.glade | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/source/ubl-settings-update.c b/source/ubl-settings-update.c index d078685..ce8ad23 100644 --- a/source/ubl-settings-update.c +++ b/source/ubl-settings-update.c @@ -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"); } } diff --git a/ubl-settings-update-mirror-add.glade b/ubl-settings-update-mirror-add.glade index 77ac8ea..c654958 100644 --- a/ubl-settings-update-mirror-add.glade +++ b/ubl-settings-update-mirror-add.glade @@ -1,5 +1,5 @@ - + @@ -162,6 +162,7 @@ mirrorlist - mirrors file, make sure server URL is NOT included in this file! Si True True Resource link of file path + http://repo.ublinux.ru/2405 True