From: Christian Dywan Date: Wed, 11 Jul 2012 20:55:41 +0000 (+0200) Subject: Render url icon in url entries X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ca795eec20801c380c7ea536dedaad8206f533f;p=midori Render url icon in url entries Notably in the bookmark dialog and the homepage. --- diff --git a/katze/katze-utils.c b/katze/katze-utils.c index f4170712..9b41d815 100644 --- a/katze/katze-utils.c +++ b/katze/katze-utils.c @@ -1582,6 +1582,11 @@ GtkWidget* katze_uri_entry_new (GtkWidget* other_widget) { 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_CALLBACK (katze_uri_entry_changed_cb), other_widget); return entry;