Always pass view pointer to icon callback

This commit is contained in:
Samuel Creshal 2010-03-15 17:44:19 +01:00 committed by Christian Dywan
parent 4a412724ec
commit f4b4c53166

View file

@ -724,7 +724,6 @@ typedef struct
gchar* icon_file;
KatzeNetIconCb icon_cb;
MidoriView* view;
gpointer user_data;
} KatzeNetIconPriv;
void
@ -803,7 +802,7 @@ katze_net_icon_transfer_cb (KatzeNetRequest* request,
if (!pixbuf)
{
priv->icon_cb (NULL, priv->user_data);
priv->icon_cb (NULL, priv->view);
katze_net_icon_priv_free (priv);
return;
}
@ -815,7 +814,7 @@ katze_net_icon_transfer_cb (KatzeNetRequest* request,
GDK_INTERP_BILINEAR);
g_object_unref (pixbuf);
priv->icon_cb (pixbuf_scaled, priv->user_data);
priv->icon_cb (pixbuf_scaled, priv->view);
katze_net_icon_priv_free (priv);
}