Compare strings with strcmp, this fixes icons in the location
This commit is contained in:
parent
c2cba4899a
commit
3f78fc132e
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ midori_location_action_set_icon_for_uri (MidoriLocationAction* location_action,
|
||||||
item.title = NULL;
|
item.title = NULL;
|
||||||
midori_location_entry_add_item (
|
midori_location_entry_add_item (
|
||||||
MIDORI_LOCATION_ENTRY (entry), &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_set_icon_from_pixbuf (GTK_ICON_ENTRY (child),
|
||||||
GTK_ICON_ENTRY_PRIMARY, icon);
|
GTK_ICON_ENTRY_PRIMARY, icon);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue