window: initialize and include week-view in the main window

We add the week-view to the views_stack.
Initialize the GtkWidget week_view in the gcal-window.c
This commit is contained in:
pandusonu2
2016-12-01 23:48:52 -02:00
committed by Georges Basile Stavracas Neto
parent d29520266d
commit 028eb7b994
2 changed files with 20 additions and 9 deletions
+12 -1
View File
@@ -52,6 +52,16 @@
<style>
<class name="view"/>
</style>
<child>
<object class="GcalWeekView" id="week_view">
<property name="visible">True</property>
<property name="active-date" bind-source="GcalWindow" bind-property="active-date" bind-flags="bidirectional"/>
</object>
<packing>
<property name="name">week</property>
<property name="title" translatable="yes">Week</property>
</packing>
</child>
<child>
<object class="GcalMonthView" id="month_view">
<property name="visible">True</property>
@@ -62,6 +72,7 @@
<signal name="event-activated" handler="event_activated" object="GcalWindow" swapped="no"/>
</object>
<packing>
<property name="position">1</property>
<property name="name">month</property>
<property name="title" translatable="yes">Month</property>
</packing>
@@ -75,7 +86,7 @@
<signal name="event-activated" handler="event_activated" object="GcalWindow" swapped="no"/>
</object>
<packing>
<property name="position">1</property>
<property name="position">2</property>
<property name="name">year</property>
<property name="title" translatable="yes">Year</property>
</packing>