]> spindle.queued.net Git - midori/commitdiff
Compare strings with strcmp, this fixes icons in the location
authorEnrico Tröger <enrico.troeger@uvena.de>
Sat, 18 Oct 2008 23:32:38 +0000 (01:32 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 18 Oct 2008 23:32:38 +0000 (01:32 +0200)
midori/midori-locationaction.c

index b7d56b73968dc7b24c5d1c04e91c43a3be9377bc..e8b0f4069d692effd5a6fbfbd95c1ff4e5e24ccf 100644 (file)
@@ -494,7 +494,7 @@ midori_location_action_set_icon_for_uri (MidoriLocationAction* location_action,
         item.title = NULL;
         midori_location_entry_add_item (
             MIDORI_LOCATION_ENTRY (entry), &item);
-        if (location_action->uri == uri)
+        if (!g_strcmp0 (location_action->uri, uri))
             gtk_icon_entry_set_icon_from_pixbuf (GTK_ICON_ENTRY (child),
                 GTK_ICON_ENTRY_PRIMARY, icon);
     }