From df1a1ccdcb6e42e80bdd22e70630483ff7ea81ae Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 24 Dec 2024 15:06:52 +0600 Subject: [PATCH] Fixed port entry allowed symbols --- source/ubl-settings-update.c | 2 ++ ubl-settings-update-web-publication-add.glade | 1 + 2 files changed, 3 insertions(+) diff --git a/source/ubl-settings-update.c b/source/ubl-settings-update.c index a323c64..cd21731 100644 --- a/source/ubl-settings-update.c +++ b/source/ubl-settings-update.c @@ -1557,8 +1557,10 @@ web_publication_add_window *yon_web_publication_add_window_new(){ g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); g_signal_connect(G_OBJECT(window->PasswordButton),"clicked",G_CALLBACK(on_password_open),window); g_signal_connect(G_OBJECT(window->UsernameCheck),"toggled",G_CALLBACK(on_web_user_check),window); + g_signal_connect(G_OBJECT(window->PortCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),window->PortEntry); g_signal_connect(G_OBJECT(window->UserPasswordCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box_inversed),window->PasswordButton); g_signal_connect(G_OBJECT(window->UserPasswordCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box_inversed),window->UserPasswordEntry); + g_signal_connect(G_OBJECT(window->PortEntry),"insert-text",G_CALLBACK(yon_on_text_insert_only_digits),NULL); gtk_widget_show(window->Window); return window; diff --git a/ubl-settings-update-web-publication-add.glade b/ubl-settings-update-web-publication-add.glade index eab009b..db8f9e4 100644 --- a/ubl-settings-update-web-publication-add.glade +++ b/ubl-settings-update-web-publication-add.glade @@ -210,6 +210,7 @@ True + False True Port 8080