GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit 39a05c0b authored by Elliot Lee's avatar Elliot Lee

gtk_button_remove(): When removing a child widget from a button, we don't



gtk_button_remove():
	When removing a child widget from a button, we don't want to check
	the child's visibility after removal (for the purpose of knowing
	whether a queue_resize is needed), we want to check it *before*,
	because the child may be destroyed during the
	gtk_widget_unparent()

	The diff is clearer than this stupid log message. :)
parent 8051b9d2
......@@ -816,12 +816,15 @@ gtk_button_remove (GtkContainer *container,
if (button->child == widget)
{
gboolean widget_was_visible = GTK_WIDGET_VISIBLE(widget);
gtk_widget_unparent (widget);
button->child = NULL;
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (container))
if (widget_was_visible && GTK_WIDGET_VISIBLE (container))
gtk_widget_queue_resize (GTK_WIDGET (container));
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment