GtkStyle: Do not warn if attach count == 0
This is going go happen more and more often now, as realize handlers start removing the gtk_widget_style_attach() calls.
This commit is contained in:
parent
6bf04fbd94
commit
5d496aa7f3
@ -954,8 +954,10 @@ void
|
||||
gtk_style_detach (GtkStyle *style)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_STYLE (style));
|
||||
g_return_if_fail (style->attach_count > 0);
|
||||
|
||||
|
||||
if (style->attach_count == 0)
|
||||
return;
|
||||
|
||||
style->attach_count -= 1;
|
||||
if (style->attach_count == 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user