[epiphany] downloads-popover: Fix GtkListBoxRow not being destroyed
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] downloads-popover: Fix GtkListBoxRow not being destroyed
- Date: Sat, 27 Feb 2016 18:36:33 +0000 (UTC)
commit edfd6c451ecb20e1e03ad2be32fea49bf5b6e11a
Author: Iulian Radu <iulian radu67 gmail com>
Date: Thu Feb 25 12:34:56 2016 +0200
downloads-popover: Fix GtkListBoxRow not being destroyed
When a download was removed (with the clear button or the remove button),
the corresponding GtkListBoxRow containing the download widget was not
removed.
Remove the parent GtkListBoxRow containing the download widget.
https://bugzilla.gnome.org/show_bug.cgi?id=761857
lib/widgets/ephy-downloads-popover.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/widgets/ephy-downloads-popover.c b/lib/widgets/ephy-downloads-popover.c
index c9f2b7c..aade90d 100644
--- a/lib/widgets/ephy-downloads-popover.c
+++ b/lib/widgets/ephy-downloads-popover.c
@@ -103,7 +103,7 @@ download_removed_cb (EphyDownloadsPopover *popover,
continue;
if (ephy_download_widget_get_download (EPHY_DOWNLOAD_WIDGET (widget)) == download) {
- gtk_widget_destroy (widget);
+ gtk_widget_destroy (l->data);
break;
}
}
@@ -139,7 +139,7 @@ clear_button_clicked_cb (EphyDownloadsPopover *popover)
download = ephy_download_widget_get_download (EPHY_DOWNLOAD_WIDGET (widget));
if (!ephy_download_is_active (download)) {
ephy_downloads_manager_remove_download (manager, download);
- gtk_widget_destroy (widget);
+ gtk_widget_destroy (l->data);
}
}
g_list_free (children);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]