]> spindle.queued.net Git - midori/commitdiff
Unset tooltip on location if no security is given
authorJames McMinn <cyblob@gmail.com>
Thu, 7 Apr 2011 21:05:54 +0000 (23:05 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 7 Apr 2011 21:05:54 +0000 (23:05 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/754042
midori/midori-locationaction.c

index c8f7c1402cf7b817c4c563a8eb4ae0aad440ee0d..1eb4d1a3af38ac6f4347e294748f92448c9329a9 100644 (file)
@@ -1840,6 +1840,9 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
                 GTK_ICON_ENTRY_SECONDARY, _("Verified and encrypted connection"));
             #endif
         }
+        else if (hint == MIDORI_SECURITY_NONE)
+            gtk_icon_entry_set_tooltip (GTK_ICON_ENTRY (child),
+                GTK_ICON_ENTRY_SECONDARY, NULL);
 
         gtk_widget_modify_base (child, GTK_STATE_NORMAL,
             bg_color.red == 1 ? NULL : &bg_color);