summaryrefslogtreecommitdiff
path: root/src/glade-window.c
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-10-21 21:42:27 -0300
committerJuan Pablo Ugarte <juanpablougarte@gmail.com>2020-10-21 21:43:44 -0300
commitaf5e94df9f84027da3e8ec150b218487ee9fe554 (patch)
tree2d99e580d99e32aa3ab669924de624861bec6cfc /src/glade-window.c
parent81f96c2fb14159c2fad5ecc149bf978fddbb9c06 (diff)
downloadglade-af5e94df9f84027da3e8ec150b218487ee9fe554.tar.gz
GladeWindow: disable survey if there is no TLS support
Closses issue #371 "Glade user survey not working (TLS error)"
Diffstat (limited to 'src/glade-window.c')
-rw-r--r--src/glade-window.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/glade-window.c b/src/glade-window.c
index c71e56d8..7cb5a1b2 100644
--- a/src/glade-window.c
+++ b/src/glade-window.c
@@ -2501,6 +2501,13 @@ glade_window_registration_notify_user (GladeWindow *window)
g_return_if_fail (GLADE_IS_WINDOW (window));
priv = window->priv;
+ if (!g_tls_backend_supports_tls (g_tls_backend_get_default ()))
+ {
+ g_message ("No TLS support in GIO, Registration & User Survey disabled. (missing glib-networking package)");
+ actions_set_enabled (window, "registration", FALSE);
+ return;
+ }
+
g_object_get (priv->registration,
"completed", &completed,
"skip-reminder", &skip_reminder,