ocarina/gui/history.cpp
Anna Schumaker 99e849a106 gui: Set the runtime label for each tab
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
2014-04-06 19:57:03 -04:00

39 lines
636 B
C++

/*
* Copyright 2014 (c) Anna Schumaker.
*/
#include <audio.h>
#include <tabs.h>
class HistoryTab : public Tab {
public:
HistoryTab();
~HistoryTab();
};
HistoryTab :: HistoryTab()
: Tab(audio::get_recent_pq())
{
tab_search = get_widget<Gtk::SearchEntry>("o_history_entry");
tab_size = get_widget<Gtk::Label>("o_history_size");
tab_treeview = get_widget<Gtk::TreeView>("o_history_treeview");
tab_widget = get_widget<Gtk::Widget>("o_history_page");
tab_finish_init();
}
HistoryTab :: ~HistoryTab()
{
tab_unmap();
}
static HistoryTab *history_tab;
void init_history_tab()
{
history_tab = new HistoryTab;
}