gui: History tab cleanups

This is a statically defined class, so we don't need to separate out the
function definitions.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-04-12 10:08:10 -04:00
parent a581b42649
commit 3dd123fbfd
1 changed files with 14 additions and 20 deletions

View File

@ -7,13 +7,7 @@
class HistoryTab : public Tab {
public:
HistoryTab();
~HistoryTab();
};
HistoryTab :: HistoryTab()
: Tab(deck :: get_queue())
HistoryTab() : Tab(deck :: get_queue())
{
tab_search = gui :: get_widget<Gtk::SearchEntry>("o_history_entry");
tab_size = gui :: get_widget<Gtk::Label>("o_history_size");
@ -23,11 +17,11 @@ HistoryTab :: HistoryTab()
tab_finish_init();
}
HistoryTab :: ~HistoryTab()
~HistoryTab()
{
tab_unmap();
}
};
static HistoryTab *history_tab;