#pragma once

#include "../widget.hpp"
#include "wf-popover.hpp"
#include <gtkmm/calendar.h>
#include <gtkmm/label.h>

class WayfireClock : public WayfireWidget
{
    Gtk::Label label;
    Gtk::Calendar calendar;
    std::unique_ptr<WayfireMenuWidget> button;

    sigc::connection timeout, btn_sig;
    WfOption<std::string> format{"panel/clock_format"};

    void on_calendar_shown();

  public:
    void init(Gtk::Box *container) override;
    bool update_label();
    ~WayfireClock();
};
