[gnome-todo/wip/gbsneto/plugins] window: add loaded panels



commit 0898b5525f3146c3edfaa626ba0f71fbc8e8eb1e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Dec 28 12:47:26 2015 -0200

    window: add loaded panels
    
    We may be missing the panels that
    were loaded before we connect the
    signals.
    
    Load these panels manually.

 src/gtd-window.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index c0746d9..d0d6a2c 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -981,6 +981,18 @@ gtd_window_set_property (GObject      *object,
                         G_CALLBACK (gtd_window__show_error_message),
                         self);
 
+      /* Add loaded panels */
+      lists = gtd_manager_get_panels (self->priv->manager);
+
+      for (l = lists; l != NULL; l = l->next)
+        {
+          gtd_window__panel_added (self->priv->manager,
+                                   l->data,
+                                   GTD_WINDOW (object));
+        }
+
+      g_list_free (lists);
+
       /* Add already loaded lists */
       lists = gtd_manager_get_task_lists (self->priv->manager);
 


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