Horizon
recent_item_box.hpp
1#pragma once
2#include <gtkmm.h>
3
4namespace horizon {
5class RecentItemBox : public Gtk::EventBox {
6public:
7 RecentItemBox(const std::string &name, const std::string &path, const Glib::DateTime &time);
8 const std::string path;
9 typedef sigc::signal<void> type_signal_remove;
10 type_signal_remove signal_remove()
11 {
12 return s_signal_remove;
13 }
14
15private:
16 const Glib::DateTime time;
17 void update_time();
18 Gtk::Label *time_label = nullptr;
19 Gtk::Menu menu;
20 type_signal_remove s_signal_remove;
21};
22} // namespace horizon
Definition: recent_item_box.hpp:5