[epiphany] downloads-popover: Disappear more smoothly
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] downloads-popover: Disappear more smoothly
- Date: Sat, 27 Feb 2016 18:36:39 +0000 (UTC)
commit cb048f1faa673cf4002d9b8d69cbfaa4f274cab2
Author: Iulian Radu <iulian radu67 gmail com>
Date: Thu Feb 25 12:42:41 2016 +0200
downloads-popover: Disappear more smoothly
If the last download is being removed, hide the popover before
destroying the last containing widget to avoid visual glitch.
https://bugzilla.gnome.org/show_bug.cgi?id=761857
lib/widgets/ephy-downloads-popover.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/widgets/ephy-downloads-popover.c b/lib/widgets/ephy-downloads-popover.c
index aade90d..48886f8 100644
--- a/lib/widgets/ephy-downloads-popover.c
+++ b/lib/widgets/ephy-downloads-popover.c
@@ -92,6 +92,12 @@ download_removed_cb (EphyDownloadsPopover *popover,
EphyDownloadsManager *manager;
children = gtk_container_get_children (GTK_CONTAINER (popover->downloads_box));
+
+ /* Hide the popover before removing the last download widget so it "crumples"
+ * more smoothly */
+ if (g_list_length (children) == 1)
+ gtk_widget_hide (GTK_WIDGET (popover));
+
for (l = children; l; l = g_list_next (l)) {
GtkWidget *widget;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]