Settled GTK+ Tab TODOs.

This commit is contained in:
Pietro Gagliardi 2015-04-18 17:28:13 -04:00
parent d0c0188ef9
commit ae94993730
1 changed files with 4 additions and 3 deletions

View File

@ -57,10 +57,11 @@ static void tabDeletePage(uiTab *tt, uintmax_t n)
// make sure the page's control isn't destroyed
uiParentSetMainControl(p, NULL);
uiParentDestroy(p);
// TODO destroying the parent does this?
// gtk_notebook_remove_page(t->notebook, n);
// now destroy the page
// this will also remove the tab
// why? simple: both gtk_notebook_remove_tab() and gtk_widget_destroy() call gtk_container_remove()
uiParentDestroy(p);
}
uiTab *uiNewTab(void)