Settled GTK+ Tab TODOs.
This commit is contained in:
parent
d0c0188ef9
commit
ae94993730
|
@ -57,10 +57,11 @@ static void tabDeletePage(uiTab *tt, uintmax_t n)
|
||||||
|
|
||||||
// make sure the page's control isn't destroyed
|
// make sure the page's control isn't destroyed
|
||||||
uiParentSetMainControl(p, NULL);
|
uiParentSetMainControl(p, NULL);
|
||||||
uiParentDestroy(p);
|
|
||||||
|
|
||||||
// TODO destroying the parent does this?
|
// now destroy the page
|
||||||
// gtk_notebook_remove_page(t->notebook, n);
|
// 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)
|
uiTab *uiNewTab(void)
|
||||||
|
|
Loading…
Reference in New Issue