From 15f5d26043fa4b9d8f83aaa0d13347b5a3218ec5 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Mon, 3 Sep 2012 11:31:01 +0300 Subject: ephy-overview-store: fix the setter for the default icon --- lib/widgets/ephy-overview-store.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-overview-store.c b/lib/widgets/ephy-overview-store.c index 478bc1533..5ec9f9925 100644 --- a/lib/widgets/ephy-overview-store.c +++ b/lib/widgets/ephy-overview-store.c @@ -416,14 +416,18 @@ void ephy_overview_store_set_default_icon (EphyOverviewStore *store, GdkPixbuf *default_icon) { + GdkPixbuf *new_default_icon; + if (store->priv->default_icon) g_object_unref (store->priv->default_icon); - store->priv->default_icon = ephy_overview_store_add_frame (store, default_icon); + new_default_icon = ephy_overview_store_add_frame (store, default_icon); gtk_tree_model_foreach (GTK_TREE_MODEL (store), (GtkTreeModelForeachFunc) set_default_icon_helper, - NULL); + new_default_icon); + + store->priv->default_icon = new_default_icon; g_object_notify (G_OBJECT (store), "default-icon"); } -- cgit v1.2.3