[epiphany] ephy-overview-store: fix the setter for the default icon
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-overview-store: fix the setter for the default icon
- Date: Mon, 3 Sep 2012 10:10:32 +0000 (UTC)
commit 15f5d26043fa4b9d8f83aaa0d13347b5a3218ec5
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Sep 3 11:31:01 2012 +0300
ephy-overview-store: fix the setter for the default icon
lib/widgets/ephy-overview-store.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/widgets/ephy-overview-store.c b/lib/widgets/ephy-overview-store.c
index 478bc15..5ec9f99 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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]