[gnome-calendar/calendar-editor] window: add a GcalSourceDialog instance



commit b16bb3ba069adc6442b8c37fd2f931eaecbbd595
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 9 11:51:38 2015 -0200

    window: add a GcalSourceDialog instance

 data/ui/window.ui |    5 +++++
 src/gcal-window.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/window.ui b/data/ui/window.ui
index e653702..4e1f7f7 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -482,4 +482,9 @@
       </object>
     </child>
   </object>
+  <object class="GcalSourceDialog" id="source_dialog">
+    <property name="visible">False</property>
+    <property name="can_focus">False</property>
+    <property name="transient_for">GcalWindow</property>
+  </object>
 </interface>
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 403da62..e15e00c 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -29,6 +29,7 @@
 #include "gcal-event-widget.h"
 #include "gcal-edit-dialog.h"
 #include "gcal-enum-types.h"
+#include "gcal-source-dialog.h"
 
 #include <glib/gi18n.h>
 
@@ -109,6 +110,7 @@ typedef struct
   /* calendar management */
   GtkWidget           *calendar_popover;
   GtkWidget           *calendar_listbox;
+  GtkWidget           *source_dialog;
   gint                 refresh_timeout;
   gint                 refresh_timeout_id;
 
@@ -1240,6 +1242,7 @@ gcal_window_class_init(GcalWindowClass *klass)
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, calendars_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, calendar_listbox);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, calendar_popover);
+  gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, source_dialog);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, search_entry);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, back_button);
   gtk_widget_class_bind_template_child_private (widget_class, GcalWindow, today_button);


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