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:
Carlos Garnacho 2010-11-24 01:11:26 +01:00
parent 6bf04fbd94
commit 5d496aa7f3

View File

@ -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)
{