Make unknown window types fatal

This helps gcc to see that there's no point in warning about
gdk_window being used uninitialized.
This commit is contained in:
Matthias Clasen 2016-11-19 18:32:11 -05:00
parent b93c26f559
commit b0303c539c

View File

@ -6986,7 +6986,7 @@ gtk_window_realize (GtkWidget *widget)
}
break;
default:
g_warning (G_STRLOC": Unknown window type %d!", priv->type);
g_error (G_STRLOC": Unknown window type %d!", priv->type);
break;
}
}