[Xfce4-commits] <midori:master> Only show tls error if flags > 0
Christian Dywan
noreply at xfce.org
Fri Apr 19 01:18:03 CEST 2013
Updating branch refs/heads/master
to 27ae3abc921f5a57fded2d2a2a89a0e2a0a18041 (commit)
from ead6936425852ddd52c9093b75da661d5b4558ef (commit)
commit 27ae3abc921f5a57fded2d2a2a89a0e2a0a18041
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Apr 19 01:15:51 2013 +0200
Only show tls error if flags > 0
midori/midori-locationaction.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 12e8f52..01bda95 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -1436,12 +1436,14 @@ midori_location_action_show_page_info (GtkWidget* widget,
gtk_window_set_default_size (GTK_WINDOW (dialog), 250, 200);
#endif
#else
- const gchar* tls_error = midori_location_action_tls_flags_to_string (tls_flags);
-
if (!g_tls_certificate_get_issuer (tls_cert))
gtk_box_pack_start (box, gtk_label_new (_("Self-signed")), FALSE, FALSE, 0);
- gtk_box_pack_start (box, gtk_label_new (tls_error), FALSE, FALSE, 0);
+ if (tls_flags > 0)
+ {
+ const gchar* tls_error = midori_location_action_tls_flags_to_string (tls_flags);
+ gtk_box_pack_start (box, gtk_label_new (tls_error), FALSE, FALSE, 0);
+ }
#endif
g_object_unref (tls_cert);
More information about the Xfce4-commits
mailing list