Render url icon in url entries

Notably in the bookmark dialog and the homepage.
This commit is contained in:
Christian Dywan 2012-07-11 22:55:41 +02:00
parent 125bec6974
commit 9ca795eec2

View file

@ -1582,6 +1582,11 @@ GtkWidget*
katze_uri_entry_new (GtkWidget* other_widget) katze_uri_entry_new (GtkWidget* other_widget)
{ {
GtkWidget* entry = gtk_entry_new (); GtkWidget* entry = gtk_entry_new ();
#if GTK_CHECK_VERSION (2, 16, 0)
gtk_entry_set_icon_from_gicon (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY,
g_themed_icon_new_with_default_fallbacks ("text-html-symbolic"));
#endif
g_signal_connect (entry, "changed", g_signal_connect (entry, "changed",
G_CALLBACK (katze_uri_entry_changed_cb), other_widget); G_CALLBACK (katze_uri_entry_changed_cb), other_widget);
return entry; return entry;