Don't load icons when rendering completion on Hildon

This commit is contained in:
Christian Dywan 2009-10-26 18:05:56 +01:00
parent 91113a189c
commit 8cf6f4fa6c

View file

@ -643,6 +643,7 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
if (G_UNLIKELY (!icon)) if (G_UNLIKELY (!icon))
{ {
#if !HAVE_HILDON
MidoriLocationAction* action = MIDORI_LOCATION_ACTION (data); MidoriLocationAction* action = MIDORI_LOCATION_ACTION (data);
icon = katze_net_load_icon (action->net, uri, NULL, NULL, NULL); icon = katze_net_load_icon (action->net, uri, NULL, NULL, NULL);
if (G_LIKELY (icon)) if (G_LIKELY (icon))
@ -652,6 +653,7 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
} }
else else
midori_location_action_set_icon_for_uri (action, action->default_icon, uri); midori_location_action_set_icon_for_uri (action, action->default_icon, uri);
#endif
} }
else else
g_object_unref (icon); g_object_unref (icon);