ocarina: Don't show playlist tabs immediately

Instead, I want to show them when they have tracks added to them.  This
keeps the banned tab from being shown and then hidden right away during
startup.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-05-18 10:46:38 -04:00
parent 376fe67115
commit 01e63da4f7
2 changed files with 5 additions and 1 deletions

View File

@ -122,6 +122,9 @@ namespace ocarina
GdkRectangle area;
unsigned int height, n;
if (!visible)
return;
gtk_tree_model_get_iter_first(GTK_TREE_MODEL(liststore), &iter);
path = gtk_tree_model_get_path(GTK_TREE_MODEL(liststore), &iter);
col = gtk_tree_view_get_column(GTK_TREE_VIEW(treeview), 0);
@ -183,7 +186,7 @@ namespace ocarina
}
gtk_widget_show_all(label_box);
gtk_widget_show_all(box);
gtk_widget_show(entry);
set_label_text();
renumbered(p->get_number());

View File

@ -132,6 +132,7 @@ namespace ocarina
GTK_POLICY_AUTOMATIC);
gtk_container_add(GTK_CONTAINER(scroll_win), treeview);
gtk_box_pack_start(GTK_BOX(box), scroll_win, TRUE, TRUE, 0);
gtk_widget_show_all(scroll_win);
}
void Playlist::refilter()