From f4bb56614c249f8c0ccd02cffa0ad162bac4ed50 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 3 Apr 2006 12:04:10 +0000 Subject: Fix status icon reference count. 2006-04-03 Christian Persch * embed/downloader-view.c: Fix status icon reference count. --- ChangeLog | 13 +++++++++++++ embed/downloader-view.c | 9 +++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c3d428b09..70fdec341 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2006-04-03 Christian Persch + + * embed/downloader-view.c: + + Fix status icon reference count. + +2006-04-03 Christian Persch + + * embed/mozilla/MozDownload.cpp: + + Make sure we don't show "100%" on downloads unless they're really + completed. + 2006-04-03 Christian Persch * src/ephy-dbus.c: (ephy_dbus_get_bus): diff --git a/embed/downloader-view.c b/embed/downloader-view.c index 9978fd55f..0e6066968 100644 --- a/embed/downloader-view.c +++ b/embed/downloader-view.c @@ -206,7 +206,6 @@ show_status_icon (DownloaderView *dv) DownloaderViewPrivate *priv = dv->priv; priv->status_icon = gtk_status_icon_new_from_stock (EPHY_STOCK_DOWNLOAD); - g_object_ref_sink (priv->status_icon); g_signal_connect_swapped (priv->status_icon, "activate", G_CALLBACK (show_downloader_cb), dv); @@ -275,9 +274,15 @@ static void downloader_view_finalize (GObject *object) { DownloaderView *dv = EPHY_DOWNLOADER_VIEW (object); + DownloaderViewPrivate *priv = dv->priv; gboolean idle_unref = dv->priv->idle_unref; - g_object_unref (dv->priv->status_icon); + if (priv->status_icon != NULL) + { + g_object_unref (priv->status_icon); + priv->status_icon = NULL; + } + g_hash_table_destroy (dv->priv->downloads_hash); G_OBJECT_CLASS (parent_class)->finalize (object); -- cgit v1.2.3