]> spindle.queued.net Git - midori/commitdiff
Render url icon in url entries
authorChristian Dywan <christian@twotoasts.de>
Wed, 11 Jul 2012 20:55:41 +0000 (22:55 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 11 Jul 2012 20:55:41 +0000 (22:55 +0200)
Notably in the bookmark dialog and the homepage.

katze/katze-utils.c

index f417071291d7b961b53b10099d1673cb4228d8e4..9b41d81510f1ea9f98cbc492c62974f509699602 100644 (file)
@@ -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;