[gnome-calendar] window: add source dialog to builder file again
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: add source dialog to builder file again
- Date: Mon, 25 May 2015 17:00:28 +0000 (UTC)
commit 5862f1671f8c056f067829e0dc5b3e603f8dd6ab
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri May 1 09:01:05 2015 -0300
window: add source dialog to builder file again
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 fbb0c67..97d0981 100644
--- a/data/ui/window.ui
+++ b/data/ui/window.ui
@@ -462,4 +462,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 04bc9b7..81f36ff 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1346,6 +1346,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);
@@ -1460,6 +1461,8 @@ gcal_window_constructed (GObject *object)
g_signal_connect (priv->edit_dialog, "response", G_CALLBACK (edit_dialog_closed), object);
+ /* source dialog manager */
+ gcal_source_dialog_set_manager (GCAL_SOURCE_DIALOG (priv->source_dialog), priv->manager);
/* search bar */
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (priv->search_bar),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]