year-view: initial commit

Dropped almost everything. Started using an ui file and using a GtkBox
as a parent.
This commit is contained in:
Erick Pérez Castellanos
2015-01-20 13:11:58 -05:00
parent 5757b11939
commit 24b8c553dc
6 changed files with 212 additions and 960 deletions
+41
View File
@@ -0,0 +1,41 @@
<?xml version="1.0"?>
<interface>
<!-- interface-requires gtk+ 3.10 -->
<template class="GcalYearView" parent="GtkBox">
<property name="visible">True</property>
<child>
<object class="GtkDrawingArea" id="year_view_navigator">
<property name="visible">True</property>
<signal name="draw" handler="draw_navigator" object="GcalYearView" swapped="yes" />
<!-- FIXME: add some other necessary signals -->
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkOverlay" id="sidebar">
<property name="visible">True</property>
<child type="overlay">
<object class="GtkButton" id="add_event_button">
<property name="visible">True</property>
<property name="valign">end</property>
<property name="label" translatable="yes">Add new event...</property>
<signal name="clicked" handler="add_event_clicked_cb" object="GcalYearView" swapped="yes" />
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<child>
<object class="GtkListBox" id="events_listbox">
<property name="visible">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>