gui: Playqueue spacing improvements
Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
d16ce77c0a
commit
3fb8dfa534
15
gui/tabs.cpp
15
gui/tabs.cpp
|
@ -168,15 +168,13 @@ class OcarinaPage : public Gtk::VBox {
|
|||
private:
|
||||
unsigned int init_flags;
|
||||
Gtk::Notebook *notebook;
|
||||
OcarinaTab *tab;
|
||||
|
||||
/* Filter state */
|
||||
std::set<unsigned int> visible_ids;
|
||||
|
||||
OcarinaTab *tab;
|
||||
|
||||
/* Page widgets */
|
||||
Gtk::HBox page_toolbar;
|
||||
Gtk::HSeparator page_sep;
|
||||
Gtk::SearchEntry page_entry;
|
||||
Gtk::ToggleButton page_repeat;
|
||||
Gtk::ScrolledWindow page_scroll;
|
||||
|
@ -291,7 +289,6 @@ void OcarinaPage::setup_toolbar()
|
|||
}
|
||||
|
||||
pack_start(page_toolbar, false, false);
|
||||
pack_start(page_sep, false, false);
|
||||
}
|
||||
|
||||
void OcarinaPage::setup_treeview()
|
||||
|
@ -318,6 +315,11 @@ void OcarinaPage::setup_treeview()
|
|||
page_view.set_enable_search(false);
|
||||
page_view.get_selection()->set_mode(Gtk::SELECTION_MULTIPLE);
|
||||
page_view.set_rubber_banding();
|
||||
|
||||
page_scroll.set_shadow_type(Gtk::SHADOW_IN);
|
||||
page_scroll.set_margin_left(5);
|
||||
page_scroll.set_margin_right(5);
|
||||
page_scroll.set_margin_bottom(5);
|
||||
page_scroll.add(page_view);
|
||||
|
||||
setup_columns();
|
||||
|
@ -639,7 +641,6 @@ void init_tabs2()
|
|||
|
||||
void cleanup_tabs()
|
||||
{
|
||||
std::map<Playqueue *, OcarinaPage *>::iterator it;
|
||||
for (it = tab_map.begin(); it != tab_map.end(); it++)
|
||||
delete it->second;
|
||||
while (tab_map.size() > 0)
|
||||
delete tab_map.begin()->second;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue