From f4b4c5316643b3ddabb6359c09880322fd943823 Mon Sep 17 00:00:00 2001 From: Samuel Creshal Date: Mon, 15 Mar 2010 17:44:19 +0100 Subject: [PATCH] Always pass view pointer to icon callback --- midori/midori-view.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 80ffe81e..32cb2886 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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); } -- 2.39.5