[gnome-builder] transfers: reset theatrics when underlying model changes
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] transfers: reset theatrics when underlying model changes
- Date: Sat, 10 Jun 2017 04:43:01 +0000 (UTC)
commit 62f9263481eee8bcc9da003743f998d07829f66c
Author: Christian Hergert <chergert redhat com>
Date: Fri Jun 9 21:42:17 2017 -0700
transfers: reset theatrics when underlying model changes
We don't want the animation to be spurious, so use this new API from
libdazzle to ensure that theatrics are re-enabled when a transfer is
added (or cleared) from the manager.
libide/transfers/ide-transfers-button.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libide/transfers/ide-transfers-button.c b/libide/transfers/ide-transfers-button.c
index 4cf50bb..ca1b99d 100644
--- a/libide/transfers/ide-transfers-button.c
+++ b/libide/transfers/ide-transfers-button.c
@@ -100,6 +100,8 @@ ide_transfers_button_update_visibility (IdeTransfersButton *self)
NULL != (transfer_manager = ide_context_get_transfer_manager (context)))
visible = !!g_list_model_get_n_items (G_LIST_MODEL (transfer_manager));
+ dzl_progress_menu_button_reset_theatrics (DZL_PROGRESS_MENU_BUTTON (self));
+
gtk_widget_set_visible (GTK_WIDGET (self), visible);
IDE_EXIT;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]