week-view: fix the sync between sidebar width

Fix the width of the sidebar sync between the week view and week header.
This commit is contained in:
pandusonu2
2016-12-01 23:48:53 -02:00
committed by Georges Basile Stavracas Neto
parent 4fde7e369d
commit 97ed5267e2
5 changed files with 111 additions and 41 deletions
+3 -1
View File
@@ -10,6 +10,7 @@
<object class="GcalWeekHeader" id="header">
<property name="visible">True</property>
<property name="active-date" bind-source="GcalWeekView" bind-property="active-date" bind-flags="default" />
<property name="sidebar-width-offset" bind-source="GcalWeekView" bind-property="sidebar-width-offset" bind-flags="default" />
</object>
</child>
<child>
@@ -23,10 +24,11 @@
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkDrawingArea">
<object class="GtkDrawingArea" id="hours_bar">
<property name="visible">True</property>
<property name="height-request">2568</property>
<signal name="draw" handler="gcal_week_view_draw_hours" object="GcalWeekView" swapped="yes" />
<signal name="size-allocate" handler="gcal_week_view_hours_bar_size_allocate" object="GcalWeekView" swapped="yes" />
</object>
</child>
<!--<child>