From 78f3da39d4da021b72925482823c20a9e15f3f9e Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Thu, 1 Aug 2024 12:35:45 +0600 Subject: [PATCH] Hostname placeholder changes for auto check --- source/ubinstall-gtk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 579468a..dba21a2 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -12,8 +12,10 @@ void on_autohostname_check(GtkWidget *, main_window *widgets){ gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widgets->HostnameSensitiveCheck),1); if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck))){ gtk_widget_set_sensitive(widgets->HotnameEntry,0); + gtk_entry_set_placeholder_text(GTK_ENTRY(widgets->HotnameEntry),"auto"); }else{ gtk_widget_set_sensitive(widgets->HotnameEntry,1); + gtk_entry_set_placeholder_text(GTK_ENTRY(widgets->HotnameEntry),"ublinux-install"); } }