Unset tooltip on location if no security is given

Fixes: https://bugs.launchpad.net/midori/+bug/754042
This commit is contained in:
James McMinn 2011-04-07 23:05:54 +02:00 committed by Christian Dywan
parent 94ee681f07
commit 624259991e

View file

@ -1840,6 +1840,9 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
GTK_ICON_ENTRY_SECONDARY, _("Verified and encrypted connection")); GTK_ICON_ENTRY_SECONDARY, _("Verified and encrypted connection"));
#endif #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, gtk_widget_modify_base (child, GTK_STATE_NORMAL,
bg_color.red == 1 ? NULL : &bg_color); bg_color.red == 1 ? NULL : &bg_color);