[gnome-calendar/calendar-management] window: add the sources dialog as a field



commit d44454ecd9b43ebd88721fcaa66b096f2318210f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Jan 14 00:29:33 2015 -0200

    window: add the sources dialog as a field
    
    Since the sources dialog is transient for the window, the window must handle it.

 src/gcal-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 5487793..f9145f1 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -27,6 +27,7 @@
 #include "gcal-week-view.h"
 #include "gcal-year-view.h"
 #include "gcal-search-view.h"
+#include "gcal-source-manager-dialog.h"
 #include "gcal-event-widget.h"
 #include "gcal-edit-dialog.h"
 #include "gcal-enum-types.h"
@@ -86,6 +87,7 @@ typedef struct
   /* day, week, month, year, list */
   GtkWidget           *views [6];
   GtkWidget           *edit_dialog;
+  GtkWidget           *source_dialog;
 
   GcalManager         *manager;
   GcalWindowViewType   active_view;
@@ -1270,6 +1272,10 @@ gcal_window_constructed (GObject *object)
 
   g_signal_connect (priv->edit_dialog, "response", G_CALLBACK (edit_dialog_closed), object);
 
+  /* source manager dialog initialization */
+  priv->source_dialog = gcal_source_manager_dialog_new (priv->manager);
+  gtk_window_set_transient_for (GTK_WINDOW (priv->source_dialog), GTK_WINDOW (object));
+
   /* search bar */
   gtk_search_bar_connect_entry (GTK_SEARCH_BAR (priv->search_bar),
                                 GTK_ENTRY (priv->search_entry));


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