[nautilus] nautilus-window-slot: clear and unset window action group on dispose



commit 0ee1be569a313869e894ac893ba997ba79756e48
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Mar 13 16:51:11 2018 +0100

    nautilus-window-slot: clear and unset window action group on dispose

 src/nautilus-window-slot.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 755bc67f4..01c48ac1c 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2809,6 +2809,7 @@ nautilus_window_slot_dispose (GObject *object)
 
     g_clear_object (&priv->current_location_bookmark);
     g_clear_object (&priv->last_location_bookmark);
+    g_clear_object (&priv->slot_action_group);
 
     if (priv->find_mount_cancellable != NULL)
     {
@@ -2816,7 +2817,11 @@ nautilus_window_slot_dispose (GObject *object)
         priv->find_mount_cancellable = NULL;
     }
 
-    priv->window = NULL;
+    if (priv->window)
+    {
+        gtk_widget_insert_action_group (GTK_WIDGET (priv->window), "slot", NULL);
+        priv->window = NULL;
+    }
 
     g_free (priv->title);
     priv->title = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]