From: Christian Dywan Date: Fri, 22 Oct 2010 21:38:55 +0000 (+0200) Subject: Set location tooltip according to security status X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6ad3b1c2140d710a8ff300ebf712bbc1a125850;p=midori Set location tooltip according to security status --- diff --git a/midori/gtkiconentry.h b/midori/gtkiconentry.h index 6c07ce35..3b566c8c 100644 --- a/midori/gtkiconentry.h +++ b/midori/gtkiconentry.h @@ -45,6 +45,7 @@ G_BEGIN_DECLS gtk_icon_entry_set_icon_from_pixbuf (GtkEntry* entry, GtkEntryIconPosition position, GdkPixbuf* pixbuf); + #define gtk_icon_entry_set_tooltip gtk_entry_set_icon_tooltip_text #define gtk_icon_entry_set_icon_highlight gtk_entry_set_icon_activatable #define gtk_icon_entry_set_progress_fraction gtk_entry_set_progress_fraction #else diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index 9785e196..df29dd2c 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -1815,6 +1815,8 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action, #if !HAVE_HILDON gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child), GTK_ICON_ENTRY_SECONDARY, GTK_STOCK_INFO); + gtk_icon_entry_set_tooltip (GTK_ICON_ENTRY (child), + GTK_ICON_ENTRY_SECONDARY, _("Not verified")); #endif } else if (hint == MIDORI_SECURITY_TRUSTED) @@ -1824,6 +1826,8 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action, #if !HAVE_HILDON gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child), GTK_ICON_ENTRY_SECONDARY, GTK_STOCK_DIALOG_AUTHENTICATION); + gtk_icon_entry_set_tooltip (GTK_ICON_ENTRY (child), + GTK_ICON_ENTRY_SECONDARY, _("Verified and encrypted connection")); #endif }