year-view: initial commit
Dropped almost everything. Started using an ui file and using a GtkBox as a parent.
This commit is contained in:
@@ -40,6 +40,7 @@ EXTRA_DIST= \
|
||||
ui/search-view.ui \
|
||||
ui/time-selector.ui \
|
||||
ui/window.ui \
|
||||
ui/year-view.ui \
|
||||
theme/gtk-styles.css \
|
||||
$(desktop_in_files) \
|
||||
$(gsettingsschema_in_files)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
<file alias="search-view.ui" compressed="true" preprocess="xml-stripblanks">ui/search-view.ui</file>
|
||||
<file alias="time-selector.ui" compressed="true" preprocess="xml-stripblanks">ui/time-selector.ui</file>
|
||||
<file alias="window.ui" compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
|
||||
<file alias="year-view.ui" compressed="true" preprocess="xml-stripblanks">ui/year-view.ui</file>
|
||||
<file alias="gtk-styles.css" compressed="true">theme/gtk-styles.css</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user