forked from AuroraMiddleware/gtk
container: Turn assert into return_if_fail()
There's no reason to insta-crash when something goes wrong. Just don't do anything stupid. Also, remove the SPCIAL_CONTAINER() exception. Every case where special containers needed this, it is wrong and made containers draw children multiple times.
This commit is contained in:
parent
6bb8da5564
commit
d4f853dc64
@ -3756,9 +3756,7 @@ gtk_container_propagate_draw (GtkContainer *container,
|
||||
g_return_if_fail (GTK_IS_CONTAINER (container));
|
||||
g_return_if_fail (GTK_IS_WIDGET (child));
|
||||
g_return_if_fail (cr != NULL);
|
||||
|
||||
g_assert (_gtk_widget_get_parent (child) == GTK_WIDGET (container) ||
|
||||
SPECIAL_CONTAINER (container));
|
||||
g_return_if_fail (_gtk_widget_get_parent (child) == GTK_WIDGET (container));
|
||||
|
||||
if (!gtk_container_should_propagate_draw (container, child, cr))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user