[nautilus/wip/ernestask/tasks: 29/49] application: control lifetime of task manager



commit c6e19172a9b6e51bbd9cc040d745ff9b2ea43cc1
Author: Ernestas Kulik <ernestask gnome org>
Date:   Mon May 15 10:29:05 2017 +0300

    application: control lifetime of task manager

 src/nautilus-application.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 77443f5..59b443d 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -54,6 +54,8 @@
 #define DEBUG_FLAG NAUTILUS_DEBUG_APPLICATION
 #include "nautilus-debug.h"
 
+#include "nautilus-task-manager.h"
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -80,6 +82,7 @@ typedef struct
     GHashTable *notifications;
 
     NautilusFileUndoManager *undo_manager;
+    NautilusTaskManager *task_manager;
 } NautilusApplicationPrivate;
 
 G_DEFINE_TYPE_WITH_PRIVATE (NautilusApplication, nautilus_application, GTK_TYPE_APPLICATION);
@@ -611,6 +614,7 @@ nautilus_application_finalize (GObject *object)
     g_hash_table_destroy (priv->notifications);
 
     g_clear_object (&priv->undo_manager);
+    g_clear_object (&priv->task_manager);
 
     G_OBJECT_CLASS (nautilus_application_parent_class)->finalize (object);
 }
@@ -1076,6 +1080,7 @@ nautilus_application_init (NautilusApplication *self)
                                                  NULL);
 
     priv->undo_manager = nautilus_file_undo_manager_new ();
+    priv->task_manager = nautilus_task_manager_dup_singleton ();
 
     g_application_add_main_option_entries (G_APPLICATION (self), options);
 


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