From 3dd123fbfdb3193eae8cb9543998ef3052ca7ed3 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Sun, 12 Apr 2015 10:08:10 -0400 Subject: [PATCH] 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 --- gui/history.cpp | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/gui/history.cpp b/gui/history.cpp index fd41c42d..9b0f9f65 100644 --- a/gui/history.cpp +++ b/gui/history.cpp @@ -7,29 +7,23 @@ class HistoryTab : public Tab { public: - HistoryTab(); - ~HistoryTab(); + HistoryTab() : Tab(deck :: get_queue()) + { + tab_search = gui :: get_widget("o_history_entry"); + tab_size = gui :: get_widget("o_history_size"); + tab_treeview = gui :: get_widget("o_history_treeview"); + tab_widget = gui :: get_widget("o_history_page"); + + tab_finish_init(); + } + + ~HistoryTab() + { + tab_unmap(); + } }; -HistoryTab :: HistoryTab() - : Tab(deck :: get_queue()) -{ - tab_search = gui :: get_widget("o_history_entry"); - tab_size = gui :: get_widget("o_history_size"); - tab_treeview = gui :: get_widget("o_history_treeview"); - tab_widget = gui :: get_widget("o_history_page"); - - tab_finish_init(); -} - -HistoryTab :: ~HistoryTab() -{ - tab_unmap(); -} - - - static HistoryTab *history_tab; void init_history_tab()