[nautilus] nautilus-window: remove timeout before creation of notification
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-window: remove timeout before creation of notification
- Date: Mon, 2 Mar 2015 13:02:18 +0000 (UTC)
commit 539917aacd491a1186b4baf6a12cf7356f8cda0a
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Mar 2 14:00:21 2015 +0100
nautilus-window: remove timeout before creation of notification
We were accumulating old timeouts that were been triggered
randomly hiding the current notification.
src/nautilus-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 1a1a90b..d55fcce 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1573,6 +1573,10 @@ nautilus_window_on_undo_changed (NautilusFileUndoManager *manager,
gtk_revealer_set_transition_duration (GTK_REVEALER (window->priv->notification_delete), 0);
gtk_revealer_set_reveal_child (GTK_REVEALER (window->priv->notification_delete), FALSE);
gtk_revealer_set_transition_duration (GTK_REVEALER (window->priv->notification_delete),
transition_durantion);
+ if (window->priv->notification_delete_timeout_id != 0) {
+ g_source_remove (window->priv->notification_delete_timeout_id);
+ window->priv->notification_delete_timeout_id = 0;
+ }
undo_info = nautilus_file_undo_manager_get_action ();
state = nautilus_file_undo_manager_get_state ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]