[gnome-todo/wip/gbsneto/plugins: 34/62] window: add loaded panels
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/gbsneto/plugins: 34/62] window: add loaded panels
- Date: Fri, 15 Jan 2016 01:06:02 +0000 (UTC)
commit 6ac85eeed4b6e10728d8dec7efa2b2a271aa8204
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]