<?xml version="1.0"?>
<interface>
  <!-- interface-requires gtk+ 3.10 -->
  <template class="GcalYearView" parent="GtkBox">
    <style>
      <class name="year-view"/>
    </style>
    <child>
      <object class="GtkScrolledWindow" id="scrolled_window">
        <property name="visible">True</property>
        <property name="shadow_type">none</property>
        <property name="vexpand">True</property>
        <signal name="edge-overshot" handler="navigator_edge_overshot_cb" object="GcalYearView" swapped="yes"/>
        <signal name="scroll-event" handler="navigator_scroll_event_cb" object="GcalYearView" swapped="yes"/>
        <child>
          <object class="GtkViewport">
            <property name="visible">True</property>
            <property name="shadow_type">none</property>
            <property name="vexpand">True</property>
            <child>
              <object class="GtkDrawingArea" id="navigator">
                <property name="visible">True</property>
                <property name="hexpand">True</property>
                <property name="events">GDK_POINTER_MOTION_MASK|GDK_BUTTON_MOTION_MASK|GDK_BUTTON_PRESS_MASK|GDK_BUTTON_RELEASE_MASK|GDK_STRUCTURE_MASK</property>
                <signal name="draw" handler="draw_navigator" object="GcalYearView" swapped="yes"/>
                <signal name="button-press-event" handler="navigator_button_press_cb" object="GcalYearView" swapped="yes"/>
                <signal name="button-release-event" handler="navigator_button_release_cb" object="GcalYearView" swapped="yes"/>
                <signal name="motion-notify-event" handler="navigator_motion_notify_cb" object="GcalYearView" swapped="yes"/>
                <signal name="drag-motion" handler="navigator_drag_motion_cb" object="GcalYearView" swapped="yes"/>
                <signal name="drag-drop" handler="navigator_drag_drop_cb" object="GcalYearView" swapped="yes"/>
                <signal name="drag-leave" handler="navigator_drag_leave_cb" object="GcalYearView" swapped="yes"/>
                <style>
                  <class name="year-navigator"/>
                </style>
              </object>
            </child>
          </object>
        </child>
      </object>
      <packing>
        <property name="position">0</property>
        <property name="pack_type">start</property>
      </packing>
    </child>
    <child>
      <object class="GtkBox" id="sidebar">
        <property name="visible">True</property>
        <property name="width_request">200</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkStack" id="navigator_stack">
            <property name="visible">True</property>
            <child>
              <object class="GtkScrolledWindow" id="navigator_sidebar">
                <property name="visible">True</property>
                <property name="shadow_type">none</property>
                <property name="vexpand">True</property>
                <child>
                  <object class="GtkListBox" id="events_sidebar">
                    <property name="visible">True</property>
                    <property name="selection-mode">none</property>
                    <style>
                      <class name="sidebar"/>
                    </style>
                  </object>
                </child>
              </object>
              <packing>
                <property name="name">events-list</property>
              </packing>
            </child>
            <child>
              <object class="GtkBox">
                <property name="visible">True</property>
                <property name="orientation">vertical</property>
                <style>
                  <class name="sidebar"/>
                </style>
                <child>
                  <object class="GtkLabel" id="no_events_title">
                    <property name="visible">True</property>
                    <property name="halign">start</property>
                    <property name="margin">6</property>
                    <property name="label" translatable="yes">Today</property>
                    <style>
                      <class name="sidebar-header"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="visible">True</property>
                    <property name="halign">start</property>
                    <property name="margin_start">6</property>
                    <property name="label" translatable="yes">No events</property>
                    <style>
                      <class name="dim-label"/>
                      <class name="italic-label"/>
                    </style>
                  </object>
                  <packing>
                    <property name="position">1</property>
                  </packing>
                </child>
              </object>
              <packing>
                <property name="position">1</property>
                <property name="name">no-events</property>
              </packing>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton">
            <property name="visible">True</property>
            <property name="valign">end</property>
            <property name="label" translatable="yes">Add Event…</property>
            <signal name="clicked" handler="add_event_clicked_cb" object="GcalYearView" swapped="yes"/>
          </object>
          <packing>
            <property name="position">1</property>
          </packing>
        </child>
      </object>
    </child>
  </template>
  <object class="GtkPopover" id="popover">
    <property name="relative_to">navigator</property>
    <style>
      <class name="events"/>
    </style>
    <signal name="closed" handler="popover_closed_cb" object="GcalYearView" swapped="yes"/>
  </object>
</interface>
