[Xfce4-commits] <midori:master> Render url icon in url entries

Christian Dywan noreply at xfce.org
Wed Jul 11 23:04:02 CEST 2012


Updating branch refs/heads/master
         to 9ca795eec20801c380c7ea536dedaad8206f533f (commit)
       from 125bec697412a6839dca562e9b84b72109a1b931 (commit)

commit 9ca795eec20801c380c7ea536dedaad8206f533f
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jul 11 22:55:41 2012 +0200

    Render url icon in url entries
    
    Notably in the bookmark dialog and the homepage.

 katze/katze-utils.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index f417071..9b41d81 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;


More information about the Xfce4-commits mailing list