Set location tooltip according to security status
This commit is contained in:
parent
c78c982613
commit
f6ad3b1c21
2 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,7 @@ G_BEGIN_DECLS
|
||||||
gtk_icon_entry_set_icon_from_pixbuf (GtkEntry* entry,
|
gtk_icon_entry_set_icon_from_pixbuf (GtkEntry* entry,
|
||||||
GtkEntryIconPosition position,
|
GtkEntryIconPosition position,
|
||||||
GdkPixbuf* pixbuf);
|
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_icon_highlight gtk_entry_set_icon_activatable
|
||||||
#define gtk_icon_entry_set_progress_fraction gtk_entry_set_progress_fraction
|
#define gtk_icon_entry_set_progress_fraction gtk_entry_set_progress_fraction
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -1815,6 +1815,8 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
|
||||||
#if !HAVE_HILDON
|
#if !HAVE_HILDON
|
||||||
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
|
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
|
||||||
GTK_ICON_ENTRY_SECONDARY, GTK_STOCK_INFO);
|
GTK_ICON_ENTRY_SECONDARY, GTK_STOCK_INFO);
|
||||||
|
gtk_icon_entry_set_tooltip (GTK_ICON_ENTRY (child),
|
||||||
|
GTK_ICON_ENTRY_SECONDARY, _("Not verified"));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if (hint == MIDORI_SECURITY_TRUSTED)
|
else if (hint == MIDORI_SECURITY_TRUSTED)
|
||||||
|
@ -1824,6 +1826,8 @@ midori_location_action_set_security_hint (MidoriLocationAction* location_action,
|
||||||
#if !HAVE_HILDON
|
#if !HAVE_HILDON
|
||||||
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
|
gtk_icon_entry_set_icon_from_stock (GTK_ICON_ENTRY (child),
|
||||||
GTK_ICON_ENTRY_SECONDARY, GTK_STOCK_DIALOG_AUTHENTICATION);
|
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
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue